diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-04-28 01:09:08 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-04-28 01:09:08 +0200 |
commit | c7b5826d53f3f4fe31e8168e1d8c6d7b19e60f4b (patch) | |
tree | 18b7ceacc639cd998d9ea1b82dc6ec330bea4a4b /autoload/vimtex/include.vim | |
parent | 1d348d0c2db81becf134d86d0513b840e7d66435 (diff) | |
download | vim-polyglot-c7b5826d53f3f4fe31e8168e1d8c6d7b19e60f4b.tar.gz vim-polyglot-c7b5826d53f3f4fe31e8168e1d8c6d7b19e60f4b.zip |
Update
Diffstat (limited to 'autoload/vimtex/include.vim')
-rw-r--r-- | autoload/vimtex/include.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/autoload/vimtex/include.vim b/autoload/vimtex/include.vim index 2a58dffe..830292c5 100644 --- a/autoload/vimtex/include.vim +++ b/autoload/vimtex/include.vim @@ -63,6 +63,8 @@ function! s:input(fname, type) abort " {{{1 if l:lnum == 0 | return a:fname | endif let l:cmd = vimtex#cmd#get_at(l:lnum, l:cnum) + if empty(l:cmd) | return a:fname | endif + let l:file = join(map( \ get(l:cmd, 'args', [{}]), \ "get(v:val, 'text', '')"), |