summaryrefslogtreecommitdiffstats
path: root/autoload/fish.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2022-04-18 12:08:27 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2022-04-18 12:08:27 +0200
commitdb7bb8ba22f5798bf3abe9f786bc6e6d002725f8 (patch)
treec9d2fd8bead22a93f2c0eb0bd8abe14efe32f509 /autoload/fish.vim
parentaae85fe8c2a5878aee89ff8025306f3142962b5f (diff)
downloadvim-polyglot-db7bb8ba22f5798bf3abe9f786bc6e6d002725f8.tar.gz
vim-polyglot-db7bb8ba22f5798bf3abe9f786bc6e6d002725f8.zip
Update
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)>'