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
9cd30d49
Commit
9cd30d49
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: don't bother setting meta_key to false when a key is invalid
That is a task for the key-getting routine.
parent
f33d8cae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/nano.c
+0
-1
src/nano.c
src/prompt.c
+1
-4
src/prompt.c
with
1 addition
and
5 deletions
+1
-5
src/nano.c
View file @
9cd30d49
...
...
@@ -1601,7 +1601,6 @@ int do_input(bool allow_funcs)
if
(
!
have_shortcut
)
{
if
(
is_ascii_cntrl_char
(
input
)
||
meta_key
||
!
is_byte
(
input
))
{
unbound_key
(
input
);
meta_key
=
FALSE
;
input
=
ERR
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/prompt.c
View file @
9cd30d49
...
...
@@ -69,10 +69,8 @@ int do_statusbar_input(bool *ran_func, bool *finished,
if
(
input
==
KEY_MOUSE
)
{
if
(
do_statusbar_mouse
()
==
1
)
input
=
get_kbinput
(
bottomwin
);
else
{
meta_key
=
FALSE
;
else
input
=
ERR
;
}
}
#endif
...
...
@@ -88,7 +86,6 @@ int do_statusbar_input(bool *ran_func, bool *finished,
if
(
!
have_shortcut
)
{
if
(
is_ascii_cntrl_char
(
input
)
||
meta_key
||
!
is_byte
(
input
))
{
beep
();
meta_key
=
FALSE
;
input
=
ERR
;
}
}
...
...
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