From efa7e6b0ee1448f98f5a359fe2b6a9b330434db7 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Fri, 16 Nov 2018 10:33:14 +0100 Subject: [PATCH 1/1] s:indent_like_previous_line: switch conditions --- indent/python.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] ==# ':' -- 2.39.5