diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-11-08 14:33:09 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-11-08 14:33:09 +0100 |
| commit | 3f9c4e5ae437f2ecfe71fa40de0ff8209259c572 (patch) | |
| tree | 64944c1f3d53abc3a47fa3debc3f8c3b0e5c470f /vis-cmds.c | |
| parent | 994d420af7313121bf90a6ea40a3e8e0f240c88e (diff) | |
| download | vis-3f9c4e5ae437f2ecfe71fa40de0ff8209259c572.tar.gz vis-3f9c4e5ae437f2ecfe71fa40de0ff8209259c572.tar.xz | |
Remove trailing white space from source files
Diffstat (limited to 'vis-cmds.c')
| -rw-r--r-- | vis-cmds.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -306,7 +306,7 @@ static bool cmd_set(Vis *vis, Filerange *range, enum CmdOpt cmdopt, const char * } else { opt &= ~UI_OPTION_LINE_NUMBERS_ABSOLUTE; } - view_options_set(vis->win->view, opt); + view_options_set(vis->win->view, opt); break; } case OPTION_NUMBER_RELATIVE: { @@ -317,7 +317,7 @@ static bool cmd_set(Vis *vis, Filerange *range, enum CmdOpt cmdopt, const char * } else { opt &= ~UI_OPTION_LINE_NUMBERS_RELATIVE; } - view_options_set(vis->win->view, opt); + view_options_set(vis->win->view, opt); break; } case OPTION_CURSOR_LINE: { @@ -867,7 +867,7 @@ static void print_mode(Mode *mode, Text *txt, bool recursive) { static bool cmd_help(Vis *vis, Filerange *range, enum CmdOpt opt, const char *argv[]) { if (!vis_window_new(vis, NULL)) return false; - + Text *txt = vis->win->file->text; text_appendf(txt, "vis %s, compiled " __DATE__ " " __TIME__ "\n\n", VERSION); @@ -887,7 +887,7 @@ static bool cmd_help(Vis *vis, Filerange *range, enum CmdOpt opt, const char *ar i == VIS_MODE_INSERT); } } - + text_appendf(txt, "\n Text objects\n\n"); print_mode(&vis_modes[VIS_MODE_TEXTOBJ], txt, false); @@ -994,7 +994,7 @@ static Command *lookup_cmd(Vis *vis, const char *name) { if (!vis->cmds) { if (!(vis->cmds = map_new())) return NULL; - + for (Command *cmd = cmds; cmd && cmd->name[0]; cmd++) { for (const char **name = cmd->name; *name; name++) map_put(vis->cmds, *name, cmd); |
