diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-04-16 17:08:35 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-04-19 21:26:16 +0200 |
commit | c1edb4c39a7267226d48ef034c0fea62f11ea5b3 (patch) | |
tree | fd72741dea1e809eb267ac88f0486fa2437b8567 /runtime/indent | |
parent | 5da8bb92fcdd6688c80e803cb557e7b24c6ee391 (diff) | |
download | rneovim-c1edb4c39a7267226d48ef034c0fea62f11ea5b3.tar.gz rneovim-c1edb4c39a7267226d48ef034c0fea62f11ea5b3.tar.bz2 rneovim-c1edb4c39a7267226d48ef034c0fea62f11ea5b3.zip |
vim-patch:7571d55f7dcc
Updated runtime files.
https://github.com/vim/vim/commit/7571d55f7dcc009a375b2124cce2c8b21f361234
Diffstat (limited to 'runtime/indent')
-rw-r--r-- | runtime/indent/teraterm.vim | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/runtime/indent/teraterm.vim b/runtime/indent/teraterm.vim index ba24257b02..8467cefcc0 100644 --- a/runtime/indent/teraterm.vim +++ b/runtime/indent/teraterm.vim @@ -1,9 +1,9 @@ " Vim indent file " Language: Tera Term Language (TTL) -" Based on Tera Term Version 4.86 +" Based on Tera Term Version 4.92 " Maintainer: Ken Takata " URL: https://github.com/k-takata/vim-teraterm -" Last Change: 2015 Jun 4 +" Last Change: 2016 Aug 17 " Filenames: *.ttl " License: VIM License @@ -25,9 +25,7 @@ endif " The shiftwidth() function is relatively new. " Don't require it to exist. if exists('*shiftwidth') - function s:sw() abort - return shiftwidth() - endfunction + let s:sw = function('shiftwidth') else function s:sw() abort return &shiftwidth @@ -48,7 +46,7 @@ function! GetTeraTermIndent(lnum) let l:ind = l:previ - if l:prevl =~ '^\s*if\>.*\<then\s*$' + if l:prevl =~ '^\s*if\>.*\<then\>' " previous line opened a block let l:ind += s:sw() endif |