aboutsummaryrefslogtreecommitdiff
path: root/vis-prompt.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-06-12 19:40:43 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-06-15 15:51:43 +0200
commit83206fa91345d24881146f1caed88050594797e1 (patch)
tree00e89505fa86757027593df8d0cec8e22b301f0e /vis-prompt.c
parent6a5d72f10cffb5bd2ae832c909cf75aab7db8666 (diff)
downloadvis-83206fa91345d24881146f1caed88050594797e1.tar.gz
vis-83206fa91345d24881146f1caed88050594797e1.tar.xz
vis: rename uses of Cursor to Selection
Diffstat (limited to 'vis-prompt.c')
-rw-r--r--vis-prompt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vis-prompt.c b/vis-prompt.c
index 30334b7..0eea81f 100644
--- a/vis-prompt.c
+++ b/vis-prompt.c
@@ -169,8 +169,8 @@ 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_selections_primary_get(prompt->view);
- view_cursors_scroll_to(cursor, text_size(txt)-1);
+ Selection *sel = view_selections_primary_get(prompt->view);
+ view_cursors_scroll_to(sel, text_size(txt)-1);
prompt->parent = active;
prompt->parent_mode = vis->mode;
vis_window_mode_map(prompt, VIS_MODE_NORMAL, true, "<Enter>", &prompt_enter_binding);