Skip to content
GitLab
Menu
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
997826d7
Commit
997826d7
authored
6 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: rename a symbol, to match its corresponding option
parent
67c69b22
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/nano.c
+4
-4
src/nano.c
src/nano.h
+1
-1
src/nano.h
src/rcfile.c
+1
-1
src/rcfile.c
src/winio.c
+2
-2
src/winio.c
with
8 additions
and
8 deletions
+8
-8
src/nano.c
View file @
997826d7
...
...
@@ -706,8 +706,8 @@ void window_init(void)
/* In case the terminal shrunk, make sure the status line is clear. */
wipe_statusbar
();
/*
Turn the keypad on for the windows, if necessary
. */
if
(
!
ISSET
(
R
EBIND_KEYPAD
))
{
/*
When not disabled, turn escape-sequence translation on
. */
if
(
!
ISSET
(
R
AW_SEQUENCES
))
{
keypad
(
topwin
,
TRUE
);
keypad
(
edit
,
TRUE
);
keypad
(
bottomwin
,
TRUE
);
...
...
@@ -1528,7 +1528,7 @@ int get_keycode(const char *keyname, const int standard)
return
key_defined
(
keyvalue
);
#endif
#ifdef DEBUG
if
(
!
ISSET
(
R
EBIND_KEYPAD
))
if
(
!
ISSET
(
R
AW_SEQUENCES
))
fprintf
(
stderr
,
"Using fallback keycode for %s
\n
"
,
keyname
);
#endif
return
standard
;
...
...
@@ -2131,7 +2131,7 @@ int main(int argc, char **argv)
break
;
#endif
case
'K'
:
SET
(
R
EBIND_KEYPAD
);
SET
(
R
AW_SEQUENCES
);
break
;
case
'L'
:
SET
(
NO_NEWLINES
);
...
...
This diff is collapsed.
Click to expand it.
src/nano.h
View file @
997826d7
...
...
@@ -513,7 +513,7 @@ enum
MULTIBUFFER
,
SMOOTH_SCROLL
,
REBIND_DELETE
,
R
EBIND_KEYPAD
,
R
AW_SEQUENCES
,
NO_CONVERT
,
BACKUP_FILE
,
INSECURE_BACKUP
,
...
...
This diff is collapsed.
Click to expand it.
src/rcfile.c
View file @
997826d7
...
...
@@ -78,7 +78,7 @@ static const rcoption rcopts[] = {
#endif
{
"quickblank"
,
QUICK_BLANK
},
{
"rebinddelete"
,
REBIND_DELETE
},
{
"rebindkeypad"
,
R
EBIND_KEYPAD
},
{
"rebindkeypad"
,
R
AW_SEQUENCES
},
{
"regexp"
,
USE_REGEXP
},
#ifdef ENABLE_SPELLER
{
"speller"
,
0
},
...
...
This diff is collapsed.
Click to expand it.
src/winio.c
View file @
997826d7
...
...
@@ -1538,7 +1538,7 @@ int *get_verbatim_kbinput(WINDOW *win, size_t *kbinput_len)
* don't get extended keypad values. */
if
(
ISSET
(
PRESERVE
))
disable_flow_control
();
if
(
!
ISSET
(
R
EBIND_KEYPAD
))
if
(
!
ISSET
(
R
AW_SEQUENCES
))
keypad
(
win
,
FALSE
);
/* Read in one keycode, or one or two escapes. */
...
...
@@ -1557,7 +1557,7 @@ int *get_verbatim_kbinput(WINDOW *win, size_t *kbinput_len)
enable_flow_control
();
/* Use the global window pointers, because a resize may have freed
* the data that the win parameter points to. */
if
(
!
ISSET
(
R
EBIND_KEYPAD
))
{
if
(
!
ISSET
(
R
AW_SEQUENCES
))
{
keypad
(
edit
,
TRUE
);
keypad
(
bottomwin
,
TRUE
);
}
...
...
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