diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2018-02-28 19:53:28 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2018-02-28 19:53:28 +0100 |
| commit | fdb56b003c9e0a00ded2878b0c174a7780bb39b2 (patch) | |
| tree | 2f10670e311cfb379cbde19c26c200c0c29ac478 /lua/plugins/complete-filename.lua | |
| parent | 113a6a6a84198432ed9258f4abd5ec490a64c518 (diff) | |
| parent | 0be1e2e70b797e7e3149d777a26bc69966079e07 (diff) | |
| download | vis-fdb56b003c9e0a00ded2878b0c174a7780bb39b2.tar.gz vis-fdb56b003c9e0a00ded2878b0c174a7780bb39b2.tar.xz | |
Merge branch 'vis-open-fixes' of https://github.com/kj/vis
Diffstat (limited to 'lua/plugins/complete-filename.lua')
| -rw-r--r-- | lua/plugins/complete-filename.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/plugins/complete-filename.lua b/lua/plugins/complete-filename.lua index ceffdd2..03cc313 100644 --- a/lua/plugins/complete-filename.lua +++ b/lua/plugins/complete-filename.lua @@ -32,7 +32,8 @@ vis:map(vis.modes.INSERT, "<C-x><C-o>", function() local file = win.file local pos = win.selection.pos if not pos then return end - local range = file:text_object_word(pos > 0 and pos-1 or pos); + -- TODO do something clever here + local range = file:text_object_longword(pos > 0 and pos-1 or pos); if not range then return end if range.finish > pos then range.finish = pos end local prefix = file:content(range) |
