From 06d7681cfffbc3e982fe192db4190f124b2b0848 Mon Sep 17 00:00:00 2001 From: Randy Palamar Date: Sat, 11 May 2024 17:52:28 -0600 Subject: make Selection unopaque --- vis-prompt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vis-prompt.c') diff --git a/vis-prompt.c b/vis-prompt.c index f265b10..6dbe69c 100644 --- a/vis-prompt.c +++ b/vis-prompt.c @@ -54,7 +54,7 @@ static const char *prompt_enter(Vis *vis, const char *keys, const Arg *arg) { Win *win = prompt->parent; char *cmd = NULL; - Filerange range = view_selection_get(view); + Filerange range = view_selections_get(view->selection); if (!vis->mode->visual) { const char *pattern = NULL; Regex *regex = text_regex_new(); @@ -202,6 +202,6 @@ void vis_message_show(Vis *vis, const char *msg) { size_t pos = text_size(txt); text_appendf(txt, "%s\n", msg); text_save(txt, NULL); - view_cursor_to(win->view, pos); + view_cursors_to(win->view->selection, pos); vis_window_focus(win); } -- cgit v1.2.3