diff options
| author | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-17 11:52:39 +0200 | 
|---|---|---|
| committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-17 11:52:39 +0200 | 
| commit | 6b9625ecd5d8ef8af7f84a8b61759e104c0c904e (patch) | |
| tree | 6beb5fdba9e7459dfbf0e87b44b5aa1dbad75552 | |
| parent | 3383046210d81ab38096238dd480f34cfffe1c4e (diff) | |
| download | vim-polyglot-6b9625ecd5d8ef8af7f84a8b61759e104c0c904e.tar.gz vim-polyglot-6b9625ecd5d8ef8af7f84a8b61759e104c0c904e.zip  | |
Fix detecting indentation, closes #590
Diffstat (limited to '')
| -rw-r--r-- | ftdetect/polyglot.vim | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index c91d1d13..ed800dab 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -2608,14 +2608,13 @@ au! BufNewFile,BufRead,StdinReadPost * if expand("<afile>:e") == "" |    \ call polyglot#shebang#Detect() | endif  au BufEnter * if &ft == "" && expand("<afile>:e") == ""  | -      \ call s:Observe('shebang#Detect') | endif +  \ call s:Observe('shebang#Detect') | endif  augroup END  if !has_key(s:disabled_packages, 'autoindent')    " Code below re-implements sleuth for vim-polyglot    let g:loaded_sleuth = 1 -  let g:loaded_foobar = 1    " Makes shiftwidth to be synchronized with tabstop by default    if &shiftwidth == &tabstop @@ -2637,7 +2636,7 @@ if !has_key(s:disabled_packages, 'autoindent')      for line in a:lines        let i += 1 -      if !len(line) || line =~# '^\W*$' +      if !len(line) || line =~# '^\S+$'          continue        endif  | 
