diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-06-06 17:39:38 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-06-06 20:37:35 -0400 |
commit | 2d456f84d1f87ae9c8ca34db6c68b7d49b786193 (patch) | |
tree | 3ef0b1f27a50058d8adc3d21d37d3e52b7b4f10d /runtime | |
parent | 36ac80d5dd58e726a89c7108051e29de500a2f77 (diff) | |
download | rneovim-2d456f84d1f87ae9c8ca34db6c68b7d49b786193.tar.gz rneovim-2d456f84d1f87ae9c8ca34db6c68b7d49b786193.tar.bz2 rneovim-2d456f84d1f87ae9c8ca34db6c68b7d49b786193.zip |
vim-patch:8.0.0255: setpos() does not use the buffer argument for all marks
Problem: When calling setpos() with a buffer argument it often is ignored.
(Matthew Malcomson)
Solution: Make the buffer argument work for all marks local to a buffer.
(neovim vim/vim#5713) Add more tests.
https://github.com/vim/vim/commit/f13e00b2cf381e13fd327b5387a5bd6f004ac2a3
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index fffdcef8d9..f404192abb 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -6789,10 +6789,12 @@ setpos({expr}, {list}) [bufnum, lnum, col, off, curswant] "bufnum" is the buffer number. Zero can be used for the - current buffer. Setting the cursor is only possible for - the current buffer. To set a mark in another buffer you can - use the |bufnr()| function to turn a file name into a buffer - number. + current buffer. When setting an uppercase mark "bufnum" is + used for the mark position. For other marks it specifies the + buffer to set the mark in. You can use the |bufnr()| function + to turn a file name into a buffer number. + For setting the cursor and the ' mark "bufnum" is ignored, + since these are associated with a window, not a buffer. Does not change the jumplist. "lnum" and "col" are the position in the buffer. The first |