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
d2b25120
Commit
d2b25120
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: fuse two handlings of a delete key, and fix a comment
parent
0c319f8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/winio.c
+3
-6
src/winio.c
with
3 additions
and
6 deletions
+3
-6
src/winio.c
View file @
d2b25120
...
...
@@ -552,7 +552,7 @@ int parse_kbinput(WINDOW *win)
retval
=
sc_seq_or
(
do_page_up
,
*
kbinput
);
break
;
case
KEY_NPAGE
:
case
KEY_C3
:
/* PageDown (
4
) on keypad with NumLock off. */
case
KEY_C3
:
/* PageDown (
3
) on keypad with NumLock off. */
retval
=
sc_seq_or
(
do_page_down
,
*
kbinput
);
break
;
...
...
@@ -562,19 +562,16 @@ int parse_kbinput(WINDOW *win)
case
KEY_BACKSPACE
:
retval
=
sc_seq_or
(
do_backspace
,
*
kbinput
);
break
;
case
NANO_CONTROL_8
:
retval
=
ISSET
(
REBIND_DELETE
)
?
sc_seq_or
(
do_delete
,
0
)
:
sc_seq_or
(
do_backspace
,
0
);
break
;
#ifdef KEY_SDC
/* Slang doesn't support KEY_SDC. */
case
KEY_SDC
:
#endif
case
NANO_CONTROL_8
:
if
(
ISSET
(
REBIND_DELETE
))
retval
=
sc_seq_or
(
do_delete
,
*
kbinput
);
else
retval
=
sc_seq_or
(
do_backspace
,
*
kbinput
);
break
;
#endif
#ifdef KEY_SIC
/* Slang doesn't support KEY_SIC. */
case
KEY_SIC
:
...
...
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