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
bd1fcc5f
Commit
bd1fcc5f
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: correct one comment, and adjust another
parent
370406bb
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/prompt.c
+6
-8
src/prompt.c
with
6 additions
and
8 deletions
+6
-8
src/prompt.c
View file @
bd1fcc5f
...
...
@@ -90,15 +90,13 @@ int do_statusbar_input(bool *ran_func, bool *finished,
}
}
/* If we got a character, and it isn't a shortcut or toggle,
* it's a normal text character. Display the warning if we're
* in view mode, or add the character to the input buffer if
* we're not. */
/* If the keystroke isn't a shortcut nor a toggle, it's a normal text
* character: add the it to the input buffer, when allowed. */
if
(
input
!=
ERR
&&
!
have_shortcut
)
{
/*
If we're us
in
g
restricted mode,
the filename isn't blank,
*
and we're at
the "Write File" prompt,
disable text inpu
t. */
if
(
!
ISSET
(
RESTRICTED
)
||
openfile
->
filename
[
0
]
==
'\0'
||
currmenu
!=
MWRITEFILE
)
{
/*
Only accept input when not
in restricted mode,
or when not at
* the "Write File" prompt,
or when there is no filename ye
t. */
if
(
!
ISSET
(
RESTRICTED
)
||
currmenu
!=
MWRITEFILE
||
openfile
->
filename
[
0
]
==
'\0'
)
{
kbinput_len
++
;
kbinput
=
(
int
*
)
nrealloc
(
kbinput
,
kbinput_len
*
sizeof
(
int
));
kbinput
[
kbinput_len
-
1
]
=
input
;
...
...
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