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
8edb0968
Commit
8edb0968
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
input: after an Esc, don't discard starter byte of a multibyte sequence
This fixes
https://savannah.gnu.org/bugs/?48711
.
parent
0a387d9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/winio.c
+3
-1
src/winio.c
with
3 additions
and
1 deletion
+3
-1
src/winio.c
View file @
8edb0968
...
...
@@ -369,7 +369,9 @@ int parse_kbinput(WINDOW *win)
retval
=
keycode
;
break
;
case
1
:
if
((
keycode
!=
'O'
&&
keycode
!=
'o'
&&
keycode
!=
'['
)
||
if
(
keycode
>=
0x80
)
retval
=
keycode
;
else
if
((
keycode
!=
'O'
&&
keycode
!=
'o'
&&
keycode
!=
'['
)
||
key_buffer_len
==
0
||
*
key_buffer
==
ESC_CODE
)
{
/* One escape followed by a single non-escape:
* meta key sequence mode. */
...
...
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