don't use "kbinput = wgetch(win)" as a switch value in
get_accepted_kbinput() git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1629 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
70bd6e0dcb
commit
250613665f
|
@ -15,6 +15,8 @@ CVS code -
|
|||
matches inside a line (e.g. replace the "b" in "abc" with
|
||||
anything). (David Benbennick)
|
||||
- winio.c:
|
||||
get_accepted_kbinput()
|
||||
- Don't use "kbinput = wgetch(win)" as a switch value. (DLR)
|
||||
do_credits()
|
||||
- Use nanosleep() instead of usleep(). The latter is only
|
||||
standard under BSD, whereas the former is POSIX compliant.
|
||||
|
|
|
@ -119,7 +119,8 @@ int get_accepted_kbinput(WINDOW *win, int kbinput, int *meta)
|
|||
|
||||
switch (kbinput) {
|
||||
case NANO_CONTROL_3: /* Escape */
|
||||
switch (kbinput = wgetch(win)) {
|
||||
kbinput = wgetch(win);
|
||||
switch (kbinput) {
|
||||
case NANO_CONTROL_3: /* Escape */
|
||||
kbinput = wgetch(win);
|
||||
/* Esc Esc [three-digit decimal ASCII code from
|
||||
|
|
Loading…
Reference in New Issue