Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jayli committed Jan 12, 2024
1 parent 4b1fa42 commit 76178b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion autoload/easycomplete.vim
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,10 @@ function! easycomplete#context() abort
let l:ret['lnum'] = l:ret['curpos'][1] " 行号
let l:ret['col'] = l:ret['curpos'][2] " 列号
let l:ret['filetype'] = &filetype " filetype
let l:ret['filepath'] = expand('%:p') " filepath
if !exists("b:easycomplete_buffer_filepath")
let b:easycomplete_buffer_filepath = expand('%:p') " filepath
end
let l:ret['filepath'] = b:easycomplete_buffer_filepath
let line = getline(l:ret['lnum']) " 当前行内容
let l:ret['line'] = line
let l:ret['typed'] = strpart(line, 0, l:ret['col']-1) " 光标前敲入的内容
Expand Down

0 comments on commit 76178b5

Please sign in to comment.