aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter/query.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-08-10 13:04:25 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-08-10 17:28:04 +0800
commita51ab112a6fb96aef9d6e05354cfe7d2df7d8ae8 (patch)
treec87cde31e81ff6047f537df228a7cfbc50b75cf0 /runtime/lua/vim/treesitter/query.lua
parent5684c415b4857cce954d58b5a334b5abb70be9d2 (diff)
downloadrneovim-a51ab112a6fb96aef9d6e05354cfe7d2df7d8ae8.tar.gz
rneovim-a51ab112a6fb96aef9d6e05354cfe7d2df7d8ae8.tar.bz2
rneovim-a51ab112a6fb96aef9d6e05354cfe7d2df7d8ae8.zip
vim-patch:81b8bf5b4a33
Update the vimscript code for restoring cursor position Using xxd(1) to filter and edit binary files causes the input files to have dual nature, so to speak, which effectively makes restoring the cursor position broken. Fix that by ignoring the "xxd" file type in the code that restores the cursor position. Interactive rebasing in git causes files to be edited in vim, which, similarly to commit messages, are rarely the same as the last one edited. Thus, also add "gitrebase" to the list of file types for which the cursor position isn't restored. While there, refactor the code a bit to possibly save a few CPU cycles and to keep the line lengths in check, and use the long form of the commands and variables, to make the code slightly more consistent and more understandable to newcomers. Update the relevant comments in the code and the associated parts of the documentation, to keep them in sync with the updated code. Remove some redundant trailing whitespace as well, as spotted. https://github.com/vim/vim/commit/81b8bf5b4a33552c610dc2ea743ac2698a16aef7 Co-authored-by: Dragan Simic' via vim_dev <vim_dev@googlegroups.com>
Diffstat (limited to 'runtime/lua/vim/treesitter/query.lua')
0 files changed, 0 insertions, 0 deletions