From: Daniel Hahler Date: Fri, 16 Nov 2018 09:33:14 +0000 (+0100) Subject: s:indent_like_previous_line: switch conditions X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/efa7e6b0ee1448f98f5a359fe2b6a9b330434db7?ds=inline s:indent_like_previous_line: switch conditions --- diff --git a/indent/python.vim b/indent/python.vim index b3631a1..501a88a 100644 --- a/indent/python.vim +++ b/indent/python.vim @@ -289,7 +289,7 @@ function! s:indent_like_previous_line(lnum) while 1 let curpos = getpos('.')[2] if curpos == 1 | break | endif - if eval(s:skip_special_chars) || text[curpos-1] =~# '\s' + if text[curpos-1] =~# '\s' || eval(s:skip_special_chars) normal! h continue elseif text[curpos-1] ==# ':'