Removing two pointless calls of get_shortcut(), and adjusting the comments.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5009 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
родитель
016669128b
Коммит
cda06a9491
@ -1,3 +1,7 @@
|
|||||||
|
2014-06-22 Benno Schulenberg <bensberg@justemail.net>
|
||||||
|
* src/browser.c (parse_browser_input), src/help.c (parse_help_input):
|
||||||
|
Remove two pointless calls of get_shortcut(), and adjust the comments.
|
||||||
|
|
||||||
2014-06-22 Mark Majeres <mark@engine12.com>
|
2014-06-22 Mark Majeres <mark@engine12.com>
|
||||||
* src/text.c (do_redo): When redoing a line join at the tail
|
* src/text.c (do_redo): When redoing a line join at the tail
|
||||||
of the file, make sure openfile->filebot is updated.
|
of the file, make sure openfile->filebot is updated.
|
||||||
|
@ -532,15 +532,10 @@ void browser_init(const char *path, DIR *dir)
|
|||||||
width = longest;
|
width = longest;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Determine the shortcut key corresponding to the values of kbinput
|
/* Convert certain non-shortcut keys into their corresponding shortcut
|
||||||
* (the key itself) and meta_key (whether the key is a meta sequence).
|
* sequences, for compatibility with Pico. */
|
||||||
* Also convert certain non-shortcut keys into their corresponding
|
|
||||||
* shortcut keys. */
|
|
||||||
void parse_browser_input(int *kbinput, bool *meta_key)
|
void parse_browser_input(int *kbinput, bool *meta_key)
|
||||||
{
|
{
|
||||||
get_shortcut(MBROWSER, kbinput, meta_key);
|
|
||||||
|
|
||||||
/* Pico compatibility. */
|
|
||||||
if (!*meta_key) {
|
if (!*meta_key) {
|
||||||
switch (*kbinput) {
|
switch (*kbinput) {
|
||||||
case ' ':
|
case ' ':
|
||||||
|
@ -479,14 +479,10 @@ void help_init(void)
|
|||||||
assert(strlen(help_text) <= allocsize + 1);
|
assert(strlen(help_text) <= allocsize + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Determine the shortcut key corresponding to the values of kbinput
|
/* Convert certain non-shortcut keys into their corresponding shortcut
|
||||||
* (the key itself) and meta_key (whether the key is a meta sequence).
|
* sequences. */
|
||||||
* Also convert certain non-shortcut keys into their corresponding
|
|
||||||
* shortcut keys. */
|
|
||||||
void parse_help_input(int *kbinput, bool *meta_key)
|
void parse_help_input(int *kbinput, bool *meta_key)
|
||||||
{
|
{
|
||||||
get_shortcut(MHELP, kbinput, meta_key);
|
|
||||||
|
|
||||||
if (!*meta_key) {
|
if (!*meta_key) {
|
||||||
switch (*kbinput) {
|
switch (*kbinput) {
|
||||||
/* For consistency with the file browser. */
|
/* For consistency with the file browser. */
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user