summaryrefslogtreecommitdiffstats
path: root/autoload/fish.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/fish.vim')
-rw-r--r--autoload/fish.vim4
1 files changed, 1 insertions, 3 deletions
diff --git a/autoload/fish.vim b/autoload/fish.vim
index d495f7db..924f38b7 100644
--- a/autoload/fish.vim
+++ b/autoload/fish.vim
@@ -71,8 +71,6 @@ function! fish#Indent()
let l:prevline = getline(l:prevlnum)
let l:previndent = indent(l:prevlnum)
if s:IsContinuedLine(v:lnum)
- " It is customary to increment indentation of continued lines by three
- " or a custom value defined by the user if available.
let l:previndent = indent(v:lnum - 1)
if s:IsContinuedLine(v:lnum - 1)
return l:previndent
@@ -81,7 +79,7 @@ function! fish#Indent()
elseif exists('g:indent_cont')
return l:previndent + g:indent_cont
else
- return l:previndent + 3
+ return l:previndent + l:shiftwidth
endif
endif
if l:prevline =~# '\v^\s*%(begin|if|else|while|for|function|case|switch)>'