aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-06-12 18:22:50 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-06-15 15:51:43 +0200
commit5b1b6403955b97cce1fd22a8f5a6f9df72399c4b (patch)
treef281ddf6e327146fdfd60528ce5ea34e7822d504 /main.c
parentda6d35ef5b381aed3f9683398fd0869476d11acb (diff)
downloadvis-5b1b6403955b97cce1fd22a8f5a6f9df72399c4b.tar.gz
vis-5b1b6403955b97cce1fd22a8f5a6f9df72399c4b.tar.xz
view: view_cursors_selection_restore
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 2a51458..72a3df3 100644
--- a/main.c
+++ b/main.c
@@ -1669,7 +1669,7 @@ static const char *selection_restore(Vis *vis, const char *keys, const Arg *arg)
Text *txt = vis_text(vis);
View *view = vis_view(vis);
for (Cursor *c = view_cursors(view); c; c = view_cursors_next(c))
- view_cursors_selection_restore(c);
+ view_selections_restore(c);
Filerange sel = view_selection_get(view);
if (text_range_is_linewise(txt, &sel))
vis_mode_switch(vis, VIS_MODE_VISUAL_LINE);