vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 5f035630cc9b8b0fb3c209318f85af8d423089b6 parent 23dec2ca160bea4a3e5a9c383017200e5e0197d9 Author: Marc André Tanner <mat@brain-dump.org> Date: Wed, 8 Feb 2017 22:54:31 +0100 vis: fix cursor positioning after :help Diffstat:
| M | vis-cmds.c | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/vis-cmds.c b/vis-cmds.c @@ -754,6 +754,7 @@ 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); + view_cursor_to(vis->win->view, 0); if (argv[1]) vis_motion(vis, VIS_MOVE_SEARCH_FORWARD, argv[1]);