]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1145: multi-line completion has wrong indentation for last line v9.1.1145
authorglepnir <glephunter@gmail.com>
Mon, 24 Feb 2025 18:10:37 +0000 (19:10 +0100)
committerChristian Brabandt <cb@256bit.org>
Mon, 24 Feb 2025 18:10:37 +0000 (19:10 +0100)
commit5090a1fecb86c44be83d55e139ed79b7785fa090
tree8ab5f869884a5d422341cfa7cad0cfcb3d13ab2a
parent5b97947bbd197fb3aee504c459a52d3a5683740a
patch 9.1.1145: multi-line completion has wrong indentation for last line

Problem:  When expanding omni completion items with newlines (e.g.
          `then\n\t\nend`), the end statement gets wrong indentation.
Solution: Add OPENLINE_FORCE_INDENT flag to make open_line() use
          second_line_indent directly (glepnir)

closes: #16614

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Justin M. Keyes <justinkz@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/change.c
src/insexpand.c
src/testdir/dumps/Test_pum_with_special_characters_09.dump [new file with mode: 0644]
src/testdir/dumps/Test_pum_with_special_characters_10.dump [new file with mode: 0644]
src/testdir/dumps/Test_pum_with_special_characters_11.dump [new file with mode: 0644]
src/testdir/dumps/Test_pum_with_special_characters_12.dump [new file with mode: 0644]
src/testdir/test_popup.vim
src/version.c
src/vim.h