dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit 51d6c5641f0c2d134b71b388aed1e03c43bee782
parent 0120eaa585071555482b194f339617057a53991b
Author: hhvn <dev@hhvn.uk>
Date:   Sun, 23 Jan 2022 17:52:50 +0000

.c/n/i/rcshell.vim: fix brace balancing

Diffstat:
M.config/nvim/indent/rcshell.vim | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/.config/nvim/indent/rcshell.vim b/.config/nvim/indent/rcshell.vim @@ -38,9 +38,15 @@ function! GetRcIndent() endif let braces = s:Get_brace_balance(line, '{', '}') + if braces < 0 + let braces += 1 + endif let indent += braces * &sw let braces = s:Get_brace_balance(line, '(', ')') + if braces < 0 + let braces += 1 + endif let indent += braces * &sw if line =~ '[|\\]\s*$'