Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19fa
git_rec_nano
Commits
1e718cec
Commit
1e718cec
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: reshuffle a couple of lines, to put similar things together
parent
5487551c
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/global.c
+2
-5
src/global.c
src/history.c
+0
-1
src/history.c
src/proto.h
+2
-8
src/proto.h
with
4 additions
and
14 deletions
+4
-14
src/global.c
View file @
1e718cec
...
...
@@ -51,11 +51,6 @@ int margin = 0;
int
editwincols
=
-
1
;
/* The number of usable columns in the edit window: COLS - margin. */
#ifdef ENABLE_COLOR
bool
have_palette
=
FALSE
;
/* Whether the colors for the current syntax have been initialized. */
#endif
bool
suppress_cursorpos
=
FALSE
;
/* Should we skip constant position display for current keystroke? */
...
...
@@ -184,6 +179,8 @@ syntaxtype *syntaxes = NULL;
/* The global list of color syntaxes. */
char
*
syntaxstr
=
NULL
;
/* The color syntax name specified on the command line. */
bool
have_palette
=
FALSE
;
/* Whether the colors for the current syntax have been initialized. */
#endif
bool
refresh_needed
=
FALSE
;
...
...
This diff is collapsed.
Click to expand it.
src/history.c
View file @
1e718cec
...
...
@@ -326,7 +326,6 @@ void load_history(void)
history
=
&
replace_history
;
else
history
=
&
execute_history
;
}
fclose
(
hisfile
);
...
...
This diff is collapsed.
Click to expand it.
src/proto.h
View file @
1e718cec
...
...
@@ -43,10 +43,6 @@ extern bool as_an_at;
extern
int
margin
;
extern
int
editwincols
;
#ifdef ENABLE_COLOR
extern
bool
have_palette
;
#endif
extern
bool
suppress_cursorpos
;
extern
message_type
lastmessage
;
...
...
@@ -106,9 +102,6 @@ extern openfilestruct *firstfile;
#ifndef NANO_TINY
extern
char
*
matchbrackets
;
#endif
#ifndef NANO_TINY
extern
char
*
whitespace
;
extern
int
whitespace_len
[
2
];
#endif
...
...
@@ -124,7 +117,7 @@ extern char *quotestr;
extern
regex_t
quotereg
;
extern
int
quoterc
;
extern
char
*
quoteerr
;
#endif
/* !ENABLE_JUSTIFY */
#endif
extern
char
*
word_chars
;
...
...
@@ -148,6 +141,7 @@ extern char *alt_speller;
#ifdef ENABLE_COLOR
extern
syntaxtype
*
syntaxes
;
extern
char
*
syntaxstr
;
extern
bool
have_palette
;
#endif
extern
bool
refresh_needed
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help