From 57363f6ea8bafac509e11e6c1e42f9f02999ce2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 8 Feb 2017 22:54:31 +0100 Subject: vis: fix cursor positioning after :help --- vis-cmds.c | 1 + 1 file changed, 1 insertion(+) diff --git a/vis-cmds.c b/vis-cmds.c index 5f410fe..5e286b1 100644 --- 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]); -- cgit v1.2.3