tweaks: normalize the indentation after the previous change
This commit is contained in:
parent
67750a30ba
commit
801622ce19
81
src/prompt.c
81
src/prompt.c
@ -314,53 +314,52 @@ int do_statusbar_input(void)
|
|||||||
if (!function)
|
if (!function)
|
||||||
return input;
|
return input;
|
||||||
|
|
||||||
if (function == do_left)
|
if (function == do_left)
|
||||||
do_statusbar_left();
|
do_statusbar_left();
|
||||||
else if (function == do_right)
|
else if (function == do_right)
|
||||||
do_statusbar_right();
|
do_statusbar_right();
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
else if (function == to_prev_word)
|
else if (function == to_prev_word)
|
||||||
do_statusbar_prev_word();
|
do_statusbar_prev_word();
|
||||||
else if (function == to_next_word)
|
else if (function == to_next_word)
|
||||||
do_statusbar_next_word();
|
do_statusbar_next_word();
|
||||||
#endif
|
#endif
|
||||||
else if (function == do_home)
|
else if (function == do_home)
|
||||||
do_statusbar_home();
|
do_statusbar_home();
|
||||||
else if (function == do_end)
|
else if (function == do_end)
|
||||||
do_statusbar_end();
|
do_statusbar_end();
|
||||||
/* When in restricted mode at the "Write File" prompt and the
|
/* When in restricted mode at the "Write File" prompt and the
|
||||||
* filename isn't blank, disallow any input and deletion. */
|
* filename isn't blank, disallow any input and deletion. */
|
||||||
else if (ISSET(RESTRICTED) && currmenu == MWRITEFILE &&
|
else if (ISSET(RESTRICTED) && currmenu == MWRITEFILE &&
|
||||||
openfile->filename[0] != '\0' &&
|
openfile->filename[0] != '\0' &&
|
||||||
(function == do_verbatim_input ||
|
(function == do_verbatim_input ||
|
||||||
function == do_delete ||
|
function == do_delete || function == do_backspace ||
|
||||||
function == do_backspace ||
|
function == cut_text || function == paste_text))
|
||||||
function == cut_text ||
|
;
|
||||||
function == paste_text))
|
|
||||||
;
|
|
||||||
#ifdef ENABLE_NANORC
|
#ifdef ENABLE_NANORC
|
||||||
else if (function == (functionptrtype)implant)
|
else if (function == (functionptrtype)implant)
|
||||||
implant(shortcut->expansion);
|
implant(shortcut->expansion);
|
||||||
#endif
|
#endif
|
||||||
else if (function == do_verbatim_input)
|
else if (function == do_verbatim_input)
|
||||||
do_statusbar_verbatim_input();
|
do_statusbar_verbatim_input();
|
||||||
else if (function == do_delete)
|
else if (function == do_delete)
|
||||||
do_statusbar_delete();
|
do_statusbar_delete();
|
||||||
else if (function == do_backspace)
|
else if (function == do_backspace)
|
||||||
do_statusbar_backspace();
|
do_statusbar_backspace();
|
||||||
else if (function == cut_text)
|
else if (function == cut_text)
|
||||||
lop_the_answer();
|
lop_the_answer();
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
else if (function == copy_text)
|
else if (function == copy_text)
|
||||||
copy_the_answer();
|
copy_the_answer();
|
||||||
else if (function == paste_text) {
|
else if (function == paste_text) {
|
||||||
if (cutbuffer != NULL)
|
if (cutbuffer != NULL)
|
||||||
paste_into_answer();
|
paste_into_answer();
|
||||||
} else
|
} else
|
||||||
return input;
|
return input;
|
||||||
#endif
|
#endif
|
||||||
/* Don't handle the handled functions again. */
|
|
||||||
return ERR;
|
/* Don't handle any handled function again. */
|
||||||
|
return ERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return the column number of the first character of the answer that is
|
/* Return the column number of the first character of the answer that is
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user