diff options
author | Matthew Malcomson <hardenedapple@gmail.com> | 2017-01-15 20:36:29 +0000 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-01-15 21:36:29 +0100 |
commit | b5560a69b12be5342358bc5528912ab887b678c8 (patch) | |
tree | 0baaf1fd4933324752b2aae969e87bc62087d17d /src/clint.py | |
parent | a3a5090ba43561dc5691e03144a3929032bc3724 (diff) | |
download | rneovim-b5560a69b12be5342358bc5528912ab887b678c8.tar.gz rneovim-b5560a69b12be5342358bc5528912ab887b678c8.tar.bz2 rneovim-b5560a69b12be5342358bc5528912ab887b678c8.zip |
setpos(): Set lowercase mark in other buffers (#5753)
Also make setpos("'A", [999, 1, 1, 0]) fail, i.e. return -1 (assuming there is no buffer 999).
Fixes #5713
Background:
`:help setpos()` mentions an argument `"bufnum"` that determines the buffer a mark should be put in.
This argument is respected for uppercase marks, but not for lowercase marks.
This is reasonable (though I personally would like `setpos()` to be able to set marks in other buffers), but the help doesn't mention this anywhere.
It's also strange that attempting to change buffers with `setpos('.', [bufnr('#'), 1, 1, 0])` alerts the user that having a different buffer is an error, while attempting to set a mark with `setpos("'d", [bufnr('#'), 1, 1, 0])` doesn't tell the user that the `"bufnum"` argument is an error.
Diffstat (limited to 'src/clint.py')
0 files changed, 0 insertions, 0 deletions