in get_prompt_string(), redraw the prompt and set finished to FALSE when
NANO_HELP_KEY is pressed, so that we don't leave the prompt, enter the help browser, and restart the prompt after leaving it; this will properly preserve the cursor position after doing the last of these git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3289 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
родитель
08f4974093
Коммит
3326603341
@ -43,6 +43,11 @@ CVS code -
|
|||||||
get_prompt_string()
|
get_prompt_string()
|
||||||
- Use a do/while loop instead of a while loop, for consistency.
|
- Use a do/while loop instead of a while loop, for consistency.
|
||||||
(DLR)
|
(DLR)
|
||||||
|
- Redraw the prompt and set finished to FALSE when NANO_HELP_KEY
|
||||||
|
is pressed, so that we don't leave the prompt, enter the help
|
||||||
|
browser, and restart the prompt after leaving it. This will
|
||||||
|
properly preserve the cursor position after doing the last of
|
||||||
|
these. (DLR)
|
||||||
- utils.c:
|
- utils.c:
|
||||||
ngetdelim()
|
ngetdelim()
|
||||||
- Do sanity checks manually again instead of in an assert, and
|
- Do sanity checks manually again instead of in an assert, and
|
||||||
|
11
src/prompt.c
11
src/prompt.c
@ -1047,6 +1047,17 @@ int get_prompt_string(bool allow_tabs,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif /* !NANO_TINY */
|
#endif /* !NANO_TINY */
|
||||||
|
#ifndef DISABLE_HELP
|
||||||
|
case NANO_HELP_KEY:
|
||||||
|
update_statusbar_line(answer, statusbar_x);
|
||||||
|
|
||||||
|
/* This key has a shortcut list entry when it's used to
|
||||||
|
* to go to the help browser, which means that finished
|
||||||
|
* has been set to TRUE. Set it back to FALSE here, so
|
||||||
|
* that we aren't kicked out of the statusbar prompt. */
|
||||||
|
finished = FALSE;
|
||||||
|
break;
|
||||||
|
#endif /* !DISABLE_HELP */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If we have a shortcut with an associated function, break out
|
/* If we have a shortcut with an associated function, break out
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user