diff options
| author | TwoFinger <Two-Finger@users.noreply.github.com> | 2018-01-27 19:41:14 +0200 |
|---|---|---|
| committer | TwoFinger <Two-Finger@users.noreply.github.com> | 2018-01-27 20:16:47 +0200 |
| commit | e9aba1387df1a0adf6ad1441f2ce30904fc35951 (patch) | |
| tree | 098b8d3003d40b451a3bcce100cf7b79362c0791 /vis-lua.c | |
| parent | 83ac70b7a2dac1e100f1fddb40383c017ddb94cf (diff) | |
| download | vis-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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++) { |
