aboutsummaryrefslogtreecommitdiff
path: root/vis-prompt.c
diff options
context:
space:
mode:
authorRandy Palamar <randy@rnpnr.xyz>2024-05-11 17:52:28 -0600
committerRandy Palamar <randy@rnpnr.xyz>2024-05-21 20:21:46 -0600
commit06d7681cfffbc3e982fe192db4190f124b2b0848 (patch)
treeaf1d349cdca3890ce0b616789f719121b254a98b /vis-prompt.c
parent4c2b2d8a100a67212134c1bb89fad39311fa441e (diff)
downloadvis-06d7681cfffbc3e982fe192db4190f124b2b0848.tar.gz
vis-06d7681cfffbc3e982fe192db4190f124b2b0848.tar.xz
make Selection unopaque
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 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);
}