diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-08-18 22:54:46 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-08-18 22:54:46 +0200 |
commit | 7571d55f7dcc009a375b2124cce2c8b21f361234 (patch) | |
tree | 4578a5c869799173679f61adfea8bef6a63e660f /runtime/indent | |
parent | 1381d791478ee77c8368b89a3d4954316bf839b5 (diff) |
Updated runtime files.
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 |