aboutsummaryrefslogtreecommitdiff
path: root/vis-lua.c
diff options
context:
space:
mode:
authorTwoFinger <Two-Finger@users.noreply.github.com>2018-01-27 19:41:14 +0200
committerTwoFinger <Two-Finger@users.noreply.github.com>2018-01-27 20:16:47 +0200
commite9aba1387df1a0adf6ad1441f2ce30904fc35951 (patch)
tree098b8d3003d40b451a3bcce100cf7b79362c0791 /vis-lua.c
parent83ac70b7a2dac1e100f1fddb40383c017ddb94cf (diff)
downloadvis-e9aba1387df1a0adf6ad1441f2ce30904fc35951.tar.gz
vis-e9aba1387df1a0adf6ad1441f2ce30904fc35951.tar.xz
vis-complete: send whole paths for completion
text_object_word() was only sending the last part of a pathname to vis-complete. text_object_longword() is better, but sometimes may send a bit too much, so leading delimiters for some languages are stripped additionally.
Diffstat (limited to 'vis-lua.c')
-rw-r--r--vis-lua.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vis-lua.c b/vis-lua.c
index 3c998e7..83052e9 100644
--- a/vis-lua.c
+++ b/vis-lua.c
@@ -2703,6 +2703,7 @@ void vis_lua_init(Vis *vis) {
const char *name;
} textobjects[] = {
{ VIS_TEXTOBJECT_INNER_WORD, "text_object_word" },
+ { VIS_TEXTOBJECT_INNER_LONGWORD, "text_object_longword" },
};
for (size_t i = 0; i < LENGTH(textobjects); i++) {