aboutsummaryrefslogtreecommitdiff
path: root/vis-text-objects.c
diff options
context:
space:
mode:
Diffstat (limited to 'vis-text-objects.c')
-rw-r--r--vis-text-objects.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/vis-text-objects.c b/vis-text-objects.c
index 8ee2416..5869e86 100644
--- a/vis-text-objects.c
+++ b/vis-text-objects.c
@@ -2,11 +2,13 @@
#include "text-objects.h"
#include "util.h"
-void vis_textobject(Vis *vis, enum VisTextObject id) {
+bool vis_textobject(Vis *vis, enum VisTextObject id) {
if (id < LENGTH(vis_textobjects)) {
vis->action.textobj = &vis_textobjects[id];
action_do(vis, &vis->action);
+ return true;
}
+ return false;
}
static Filerange search_forward(Vis *vis, Text *txt, size_t pos) {