aboutsummaryrefslogtreecommitdiff
path: root/vis-prompt.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-03-28 12:43:57 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-03-28 12:45:07 +0200
commit8452189397544cd2fa50c8dfafe024b429a9188c (patch)
tree4ce92c0ebdc9f23d7515f11548d5cb9c3e663cb9 /vis-prompt.c
parentf577616bcefac9480eef5f995bbc589b946e5c6b (diff)
downloadvis-8452189397544cd2fa50c8dfafe024b429a9188c.tar.gz
vis-8452189397544cd2fa50c8dfafe024b429a9188c.tar.xz
vis: cleanup usage of vis_cursors_count
Diffstat (limited to 'vis-prompt.c')
-rw-r--r--vis-prompt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vis-prompt.c b/vis-prompt.c
index 71d2c51..d051762 100644
--- a/vis-prompt.c
+++ b/vis-prompt.c
@@ -95,7 +95,7 @@ static const char *prompt_enter(Vis *vis, const char *keys, const Arg *arg) {
static const char *prompt_esc(Vis *vis, const char *keys, const Arg *arg) {
Win *prompt = vis->win;
- if (view_cursors_count(prompt->view) > 1) {
+ if (view_cursors_multiple(prompt->view)) {
view_cursors_clear(prompt->view);
} else {
prompt_restore(prompt);