add UTF-8 support to unget_kbinput(), and fix a minor memory leak in the
UTF-8 support code in get_kbinput() git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2015 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
@@ -2624,8 +2624,10 @@ char *do_browser(const char *inpath)
|
||||
if (selected > numents - 1)
|
||||
selected = numents - 1;
|
||||
else if (selectedbackup == selected)
|
||||
unget_kbinput('s', FALSE); /* Unget the 'select' key */
|
||||
} else { /* Must be clicking a shortcut */
|
||||
/* Unget the 'select' key */
|
||||
unget_kbinput('s', FALSE, FALSE);
|
||||
} else {
|
||||
/* Must be clicking a shortcut */
|
||||
int mouse_x, mouse_y;
|
||||
get_mouseinput(&mouse_x, &mouse_y, TRUE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user