Skip to content

Commit

Permalink
s:indent_like_previous_line: return -1 with &autoindent
Browse files Browse the repository at this point in the history
Fixes Vimjas#121.
  • Loading branch information
blueyed committed Jan 29, 2019
1 parent 9eb89f5 commit 106a918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indent/python.vim
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ function! s:indent_like_previous_line(lnum)
return -1
endif

if (current_indent || !empty_or_only_whitespace) && s:is_dedented_already(current_indent, base)
if (&autoindent || current_indent || !empty_or_only_whitespace) && s:is_dedented_already(current_indent, base)
return -1
endif

Expand Down

0 comments on commit 106a918

Please sign in to comment.