mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Fix bug for text object for the entire buffer
This commit is contained in:
@@ -76,3 +76,11 @@ function! text_obj#MdCodeBlock(type) abort
|
||||
call setpos("'>", [buf_num, end_row, 1, 0])
|
||||
execute 'normal! `<V`>'
|
||||
endfunction
|
||||
|
||||
function! text_obj#Buffer() abort
|
||||
let buf_num = bufnr()
|
||||
|
||||
call setpos("'<", [buf_num, 1, 1, 0])
|
||||
call setpos("'>", [buf_num, line('$'), 1, 0])
|
||||
execute 'normal! `<V`>'
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user