]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0192: drop: don't rewind when editing the same file v9.1.0192
authorChristian Brabandt <cb@256bit.org>
Wed, 20 Mar 2024 19:19:47 +0000 (20:19 +0100)
committerChristian Brabandt <cb@256bit.org>
Wed, 20 Mar 2024 19:20:39 +0000 (20:20 +0100)
commit978178823b7c62a0249411f3d1f584f8a3144c5d
treef7d0b3b53d643f638b410f01bca93fbba311e206
parent2680a074d4790abb372ecda658b0c455a6fe06cf
patch 9.1.0192: drop: don't rewind when editing the same file

Problem:  :drop tries to :rewind the argumentlist, which results in E37
          (after v9.1.0046)
Solution: instead of calling ex_rewind(), call open_buffer() only when
          re-using the initial empty buffer

fixes: #14219
closes: #14220

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/ex_cmds.c
src/testdir/dumps/Test_drop_modified_1.dump [new file with mode: 0644]
src/testdir/test_excmd.vim
src/version.c