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
4416d9c9
Commit
4416d9c9
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: shuffle the resetting of a counter to the tail of the routine
parent
c073c5ae
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/winio.c
+7
-5
src/winio.c
with
7 additions
and
5 deletions
+7
-5
src/winio.c
View file @
4416d9c9
...
...
@@ -1290,11 +1290,8 @@ long get_unicode_kbinput(WINDOW *win, int kbinput)
break
;
}
/* If we have a full result, reset the Unicode digit counter. */
if
(
retval
!=
ERR
)
uni_digits
=
0
;
/* Show feedback only when editing, not when at a prompt. */
else
if
(
win
==
edit
)
{
if
(
retval
==
ERR
&&
win
==
edit
)
{
char
partial
[
7
]
=
"......"
;
/* Construct the partial result, right-padding it with dots. */
...
...
@@ -1307,9 +1304,14 @@ long get_unicode_kbinput(WINDOW *win, int kbinput)
}
#ifdef DEBUG
fprintf
(
stderr
,
"get_unicode_kbinput(): kbinput = %d, uni_digits = %d, uni = %ld, retval = %ld
\n
"
,
kbinput
,
uni_digits
,
uni
,
retval
);
fprintf
(
stderr
,
"get_unicode_kbinput(): kbinput = %d, uni_digits = %d, uni = %ld, retval = %ld
\n
"
,
kbinput
,
uni_digits
,
uni
,
retval
);
#endif
/* If we have an end result, reset the Unicode digit counter. */
if
(
retval
!=
ERR
)
uni_digits
=
0
;
return
retval
;
}
#endif
/* ENABLE_UTF8 */
...
...
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