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
4c505e51
Commit
4c505e51
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: rename a function, for aptness, and drop a superfluous check
parent
e3b13ae1
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/proto.h
+0
-1
src/proto.h
src/winio.c
+2
-6
src/winio.c
with
2 additions
and
7 deletions
+2
-7
src/proto.h
View file @
4c505e51
...
...
@@ -624,7 +624,6 @@ void dump_filestruct(const filestruct *inptr);
/* Most functions in winio.c. */
void
record_macro
(
void
);
void
run_macro
(
void
);
void
get_key_buffer
(
WINDOW
*
win
);
size_t
get_key_buffer_len
(
void
);
void
unget_kbinput
(
int
kbinput
,
bool
metakey
);
int
get_kbinput
(
WINDOW
*
win
,
bool
showcursor
);
...
...
This diff is collapsed.
Click to expand it.
src/winio.c
View file @
4c505e51
...
...
@@ -169,15 +169,11 @@ void run_macro(void)
/* Read in a sequence of keystrokes from the given window and save them
* in the keystroke buffer. */
void
get_key_buffer
(
WINDOW
*
win
)
void
read_keys_from
(
WINDOW
*
win
)
{
int
input
=
ERR
;
size_t
errcount
=
0
;
/* If the keystroke buffer isn't empty, get out. */
if
(
key_buffer
!=
NULL
)
return
;
/* Before reading the first keycode, display any pending screen updates. */
doupdate
();
...
...
@@ -309,7 +305,7 @@ int *get_input(WINDOW *win, size_t input_len)
int
*
input
;
if
(
key_buffer_len
==
0
&&
win
!=
NULL
)
get_key_buffer
(
win
);
read_keys_from
(
win
);
if
(
key_buffer_len
==
0
)
return
NULL
;
...
...
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