mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-18 17:02:06 +03:00
83277d5545
Use the custom object match command for copying indentation of blocks, rather than simply increasing/decreasing indentation when start and end statements are encountered. This fixes an issue where a newline added after an already correctly placed `else` or `fi` would trigger an unnecessary deindent. Tests have been added to ensure no regression in this behaviour.
9 lines
94 B
Plaintext
9 lines
94 B
Plaintext
if [ $foo ]; then
|
|
if [ $bar ]; then
|
|
foobar
|
|
else
|
|
qux
|
|
fi
|
|
baz
|
|
fi
|