diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-01-31 22:09:38 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-02-02 13:55:18 +0100 |
| commit | cc698987d53b43ba30fa28427b1ccd8fe2ed5070 (patch) | |
| tree | 357446791752891d6247ea2d5ed6aa5fc71596c0 /vis-cmds.c | |
| parent | 3b07039fecbab82ecdefbdb2c064a839d506431a (diff) | |
| download | vis-cc698987d53b43ba30fa28427b1ccd8fe2ed5070.tar.gz vis-cc698987d53b43ba30fa28427b1ccd8fe2ed5070.tar.xz | |
vis: support rudimentary help search using :help pattern
The argument needs to be a valid regular expression. It currently
clobbers the last used search term and hence allows repeated searches
using `n` and `N` respectively.
Diffstat (limited to 'vis-cmds.c')
| -rw-r--r-- | vis-cmds.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -753,6 +753,9 @@ static bool cmd_help(Vis *vis, Win *win, Command *cmd, const char *argv[], Curso text_appendf(txt, " %-32s\t%s\n", configs[i].name, configs[i].enabled ? "yes" : "no"); text_save(txt, NULL); + + if (argv[1]) + vis_motion(vis, VIS_MOVE_SEARCH_FORWARD, argv[1]); return true; } |
