Skip to content

Commit 84b6816

Browse files
committed
fix not to include trailing one char as input line
1 parent 6788092 commit 84b6816

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/ddc_file/internal.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ endfunction
2323
" string,
2424
" ]}
2525
function! ddc_file#internal#info(is_posix) abort
26-
let input_line = getline('.')[: col('.') - 1]
26+
let input_line = getline('.')[: col('.') - 2]
2727
let input_file_full = s:line_to_file_full(input_line, a:is_posix)
2828
let input_file_base_prefix = s:full_to_base_prefix(input_file_full, a:is_posix)
2929
let buf_path = expand('%:p')

0 commit comments

Comments
 (0)