aboutsummaryrefslogtreecommitdiff
path: root/vis-prompt.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-06-12 18:26:59 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-06-15 15:51:43 +0200
commita91e705dfd9b7358bf24e02312dfb06ab3e6848d (patch)
tree28c25cdf44b19d56b47447be4fa1991d09424482 /vis-prompt.c
parent9e0c192423a165e735441279e0ee6af7cb0353ef (diff)
downloadvis-a91e705dfd9b7358bf24e02312dfb06ab3e6848d.tar.gz
vis-a91e705dfd9b7358bf24e02312dfb06ab3e6848d.tar.xz
view: rename view_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 fc76dc7..30334b7 100644
--- a/vis-prompt.c
+++ b/vis-prompt.c
@@ -117,7 +117,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_selections_count(prompt->view) > 1) {
view_selections_dispose_all(prompt->view);
} else {
prompt_restore(prompt);