aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-05-18 13:08:07 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-05-18 15:09:18 +0200
commit7ffbf62469d1ed3bc82f0cf56d91b3ebef7b7338 (patch)
tree96baa23d81a49bf9c67cda0f0668be5f8f02c20b /main.c
parent0cb6e49b796881cbb8b754051eae10a7151ebd99 (diff)
downloadvis-7ffbf62469d1ed3bc82f0cf56d91b3ebef7b7338.tar.gz
vis-7ffbf62469d1ed3bc82f0cf56d91b3ebef7b7338.tar.xz
vis: add #define for VIS_MENU
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index aa3ba46..995ac72 100644
--- a/main.c
+++ b/main.c
@@ -2140,7 +2140,7 @@ static const char *complete_word(Vis *vis, const char *keys, const Arg *arg) {
buffer_init(&cmd);
char *prefix = get_completion_prefix(vis);
if (prefix && buffer_printf(&cmd, "tr \" ;:$<>#?{}()[],.'\" '\n' | "
- " grep '^%s' | sort | uniq | vis-menu | tr -d '\n' | sed 's/%s//'", prefix, prefix)) {
+ " grep '^%s' | sort | uniq | " VIS_MENU " | tr -d '\n' | sed 's/%s//'", prefix, prefix)) {
Filerange all = text_range_new(0, text_size(txt));
insert_dialog_selection(vis, &all, (const char*[]){ buffer_content0(&cmd), NULL });
}