Commit 7d15d1d8 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

in get_input(), simplify to avoid an unnecessary key_buffer_len check

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3869 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 7 additions and 2 deletions
+7 -2
......@@ -4,6 +4,9 @@ CVS code -
properly reset when we get out of all statusbar prompts.
Changes to do_insertfile(), do_writeout(),
handle_sigwinch(), main(), and do_prompt_abort(). (DLR)
- winio.c:
get_input()
- Simplify to avoid an unnecessary key_buffer_len check. (DLR)
GNU nano 1.9.99pre1 - 2006.08.29
- General:
......
......@@ -254,10 +254,12 @@ int *get_input(WINDOW *win, size_t input_len)
#endif
if (key_buffer_len == 0) {
if (win != NULL)
if (win != NULL) {
get_key_buffer(win);
if (key_buffer_len == 0)
if (key_buffer_len == 0)
return NULL;
} else
return NULL;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment