diff options
Diffstat (limited to 'vis-prompt.c')
| -rw-r--r-- | vis-prompt.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
