-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Description
Describe the bug
setpos()
ignores bufnum
argument and sets the position for the current buffer instead.
To Reproduce
- Run VIM:
vim -g -u NONE +'h options.txt | split | h eval.txt'
- List buffers:
:ls!
1 a "[No Name]" line 1
2u#a- "options.txt" line 1
3u%a- "eval.txt" line 1
- Set the cursor for non-current buffer
2
to line100
:
call setpos('.', [2, 100, 1, 1])
- List buffers again:
:ls!
1 a "[No Name]" line 1
2u#a- "options.txt" line 1
3u%a- "eval.txt" line 100
Expected behavior
Buffer 2
cursor position is on line 100
.
Actual behavior
Current buffer 3
cursor position is on line 100
.
Environment
- Vim version: 8.1.2466
- OS: Ubuntu 20.04
- Terminal: GUI
S0AndS0
Metadata
Metadata
Assignees
Labels
No labels