diff options
author | jyn <github@jyn.dev> | 2025-04-08 08:54:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-08 05:54:32 -0700 |
commit | 3647b821ea69ea095ccc4bf8c265df474333a5d5 (patch) | |
tree | 626ae9dfd2fda5fb8fb150a1ea2f72926240c002 /src/nvim/api/command.c | |
parent | 5b1561bb717eae8781ff62646c675c7e842e4444 (diff) | |
download | rneovim-3647b821ea69ea095ccc4bf8c265df474333a5d5.tar.gz rneovim-3647b821ea69ea095ccc4bf8c265df474333a5d5.tar.bz2 rneovim-3647b821ea69ea095ccc4bf8c265df474333a5d5.zip |
fix(editor): respect [+cmd] when executing :drop #33339
Problem:
Normally, `:drop +41 foo.txt` will open foo.txt with the cursor on line
41. But if foo.txt is already open, it instead is a no-op, even if the
cursor is on a different line.
Steps to reproduce:
nvim --clean foo.txt
:drop +30 foo.txt
Solution:
Handle +cmd in ex_drop().
Diffstat (limited to 'src/nvim/api/command.c')
0 files changed, 0 insertions, 0 deletions