tweaks: do some text alignments properly: with spaces, not tabs
parent
3690d60b71
commit
09042f5499
20
src/rcfile.c
20
src/rcfile.c
|
@ -265,7 +265,7 @@ keystruct *strtosc(const char *input)
|
||||||
#endif
|
#endif
|
||||||
#ifdef ENABLE_SPELLER
|
#ifdef ENABLE_SPELLER
|
||||||
else if (!strcmp(input, "tospell") ||
|
else if (!strcmp(input, "tospell") ||
|
||||||
!strcmp(input, "speller"))
|
!strcmp(input, "speller"))
|
||||||
s->func = do_spell;
|
s->func = do_spell;
|
||||||
#endif
|
#endif
|
||||||
#ifdef ENABLE_COLOR
|
#ifdef ENABLE_COLOR
|
||||||
|
@ -304,10 +304,10 @@ keystruct *strtosc(const char *input)
|
||||||
else if (!strcmp(input, "unindent"))
|
else if (!strcmp(input, "unindent"))
|
||||||
s->func = do_unindent;
|
s->func = do_unindent;
|
||||||
else if (!strcmp(input, "chopwordleft") ||
|
else if (!strcmp(input, "chopwordleft") ||
|
||||||
!strcmp(input, "cutwordleft")) /* Deprecated; remove in 2021. */
|
!strcmp(input, "cutwordleft")) /* Deprecated; remove in 2021. */
|
||||||
s->func = chop_previous_word;
|
s->func = chop_previous_word;
|
||||||
else if (!strcmp(input, "chopwordright") ||
|
else if (!strcmp(input, "chopwordright") ||
|
||||||
!strcmp(input, "cutwordright")) /* Deprecated; remove in 2021. */
|
!strcmp(input, "cutwordright")) /* Deprecated; remove in 2021. */
|
||||||
s->func = chop_next_word;
|
s->func = chop_next_word;
|
||||||
else if (!strcmp(input, "findbracket"))
|
else if (!strcmp(input, "findbracket"))
|
||||||
s->func = do_find_bracket;
|
s->func = do_find_bracket;
|
||||||
|
@ -323,16 +323,16 @@ keystruct *strtosc(const char *input)
|
||||||
s->func = do_redo;
|
s->func = do_redo;
|
||||||
#endif
|
#endif
|
||||||
else if (!strcmp(input, "left") ||
|
else if (!strcmp(input, "left") ||
|
||||||
!strcmp(input, "back"))
|
!strcmp(input, "back"))
|
||||||
s->func = do_left;
|
s->func = do_left;
|
||||||
else if (!strcmp(input, "right") ||
|
else if (!strcmp(input, "right") ||
|
||||||
!strcmp(input, "forward"))
|
!strcmp(input, "forward"))
|
||||||
s->func = do_right;
|
s->func = do_right;
|
||||||
else if (!strcmp(input, "up") ||
|
else if (!strcmp(input, "up") ||
|
||||||
!strcmp(input, "prevline"))
|
!strcmp(input, "prevline"))
|
||||||
s->func = do_up;
|
s->func = do_up;
|
||||||
else if (!strcmp(input, "down") ||
|
else if (!strcmp(input, "down") ||
|
||||||
!strcmp(input, "nextline"))
|
!strcmp(input, "nextline"))
|
||||||
s->func = do_down;
|
s->func = do_down;
|
||||||
#if !defined(NANO_TINY) || defined(ENABLE_HELP)
|
#if !defined(NANO_TINY) || defined(ENABLE_HELP)
|
||||||
else if (!strcmp(input, "scrollup"))
|
else if (!strcmp(input, "scrollup"))
|
||||||
|
@ -353,10 +353,10 @@ keystruct *strtosc(const char *input)
|
||||||
else if (!strcmp(input, "nextblock"))
|
else if (!strcmp(input, "nextblock"))
|
||||||
s->func = to_next_block;
|
s->func = to_next_block;
|
||||||
else if (!strcmp(input, "pageup") ||
|
else if (!strcmp(input, "pageup") ||
|
||||||
!strcmp(input, "prevpage"))
|
!strcmp(input, "prevpage"))
|
||||||
s->func = do_page_up;
|
s->func = do_page_up;
|
||||||
else if (!strcmp(input, "pagedown") ||
|
else if (!strcmp(input, "pagedown") ||
|
||||||
!strcmp(input, "nextpage"))
|
!strcmp(input, "nextpage"))
|
||||||
s->func = do_page_down;
|
s->func = do_page_down;
|
||||||
else if (!strcmp(input, "firstline"))
|
else if (!strcmp(input, "firstline"))
|
||||||
s->func = to_first_line;
|
s->func = to_first_line;
|
||||||
|
@ -422,7 +422,7 @@ keystruct *strtosc(const char *input)
|
||||||
#endif
|
#endif
|
||||||
#ifdef ENABLE_BROWSER
|
#ifdef ENABLE_BROWSER
|
||||||
else if (!strcmp(input, "tofiles") ||
|
else if (!strcmp(input, "tofiles") ||
|
||||||
!strcmp(input, "browser"))
|
!strcmp(input, "browser"))
|
||||||
s->func = to_files;
|
s->func = to_files;
|
||||||
else if (!strcmp(input, "gotodir"))
|
else if (!strcmp(input, "gotodir"))
|
||||||
s->func = goto_dir;
|
s->func = goto_dir;
|
||||||
|
|
Loading…
Reference in New Issue