diff options
author | Bram Moolenaar <Bram@vim.org> | 2011-09-14 17:55:08 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2011-09-14 17:55:08 +0200 |
commit | 5302d9ebc1be723a25ff3dc62388305f6862749d (patch) | |
tree | dcd450a19d82d9eda33ba5fb9e1becd85f87a469 /runtime/indent/awk.vim | |
parent | ddab33232a81e713c2748fc3daab763f07dd76f1 (diff) |
Updated runtime files.
Diffstat (limited to 'runtime/indent/awk.vim')
-rw-r--r-- | runtime/indent/awk.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/indent/awk.vim b/runtime/indent/awk.vim index 726a5ddbe5..edc7acac48 100644 --- a/runtime/indent/awk.vim +++ b/runtime/indent/awk.vim @@ -23,6 +23,7 @@ " 26-04-2002 Got initial version working reasonably well " 29-04-2002 Fixed problems in function headers and max line width " Added support for two-line if's without curly braces +" Fixed hang: 2011 Aug 31 " Only load this indent file when no other was loaded. if exists("b:did_indent") @@ -118,7 +119,7 @@ function! GetAwkIndent() " Case 1 if prev_data =~ ')' && brace_balance < 0 - while brace_balance != 0 + while brace_balance != 0 && prev_lineno > 0 let prev_lineno = s:Get_prev_line( prev_lineno ) let prev_data = getline( prev_lineno ) let brace_balance=brace_balance+s:Get_brace_balance(prev_data,'(',')' ) |