diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-06-10 15:03:46 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-06-15 15:51:42 +0200 |
| commit | 708216769c7cdf02ce3f69785a4356efd7dea0f7 (patch) | |
| tree | 19f8faad6ff334d3d09d1f41ab1070a52bdbc54c /vis-prompt.c | |
| parent | 0df87384ac791bbf85cf4b3d386fb851e5b87de4 (diff) | |
| download | vis-708216769c7cdf02ce3f69785a4356efd7dea0f7.tar.gz vis-708216769c7cdf02ce3f69785a4356efd7dea0f7.tar.xz | |
vis: promote selections to first class primitives
This unifies cursors and selections. The cursor are now represendted
as singleton selections.
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); |
