From 708216769c7cdf02ce3f69785a4356efd7dea0f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 10 Jun 2017 15:03:46 +0200 Subject: vis: promote selections to first class primitives This unifies cursors and selections. The cursor are now represendted as singleton selections. --- vis-prompt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vis-prompt.c') diff --git a/vis-prompt.c b/vis-prompt.c index a08a19f..c37f093 100644 --- a/vis-prompt.c +++ b/vis-prompt.c @@ -55,7 +55,7 @@ static const char *prompt_enter(Vis *vis, const char *keys, const Arg *arg) { char *cmd = NULL; Filerange range = view_selection_get(view); - if (!text_range_valid(&range)) { + if (!vis->mode->visual) { const char *pattern = NULL; Regex *regex = text_regex_new(); size_t pos = view_cursor_get(view); -- cgit v1.2.3