aboutsummaryrefslogtreecommitdiff
path: root/vis-prompt.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-06-12 18:12:41 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-06-15 15:51:42 +0200
commita9c3e2c343dd1077fa08371a505ad766dcb81baa (patch)
tree96414e375cbd15b3ca0e80ef51557d2a18fe7a45 /vis-prompt.c
parent948efb8e624c4488db00ba20ab58652212a091d7 (diff)
downloadvis-a9c3e2c343dd1077fa08371a505ad766dcb81baa.tar.gz
vis-a9c3e2c343dd1077fa08371a505ad766dcb81baa.tar.xz
view: rename view_cursors_primary_{get,set}
Diffstat (limited to 'vis-prompt.c')
-rw-r--r--vis-prompt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vis-prompt.c b/vis-prompt.c
index d2542ea..fc76dc7 100644
--- a/vis-prompt.c
+++ b/vis-prompt.c
@@ -169,7 +169,7 @@ void vis_prompt_show(Vis *vis, const char *title) {
window_selection_save(active);
Text *txt = prompt->file->text;
text_appendf(txt, "%s\n", title);
- Cursor *cursor = view_cursors_primary_get(prompt->view);
+ Cursor *cursor = view_selections_primary_get(prompt->view);
view_cursors_scroll_to(cursor, text_size(txt)-1);
prompt->parent = active;
prompt->parent_mode = vis->mode;