diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-12-31 22:27:55 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-12-31 22:27:55 +0100 |
commit | c21d67e33c1b42a492e04788cbb14a23a6724e39 (patch) | |
tree | 2e6d28f98e82d2217f4a7582d9856b9285b2c0ef /runtime/plugin | |
parent | 06b0734d9cd2f39d4c12c7fd89a100eadbe5be78 (diff) | |
download | vim-git-c21d67e33c1b42a492e04788cbb14a23a6724e39.tar.gz |
patch 7.4.1015v7.4.1015
Problem: The column is not restored properly when the matchparen plugin is
used in Insert mode and the cursor is after the end of the line.
Solution: Set the curswant flag. (Christian Brabandt). Also fix
highlighting the match of the character before the cursor.
Diffstat (limited to 'runtime/plugin')
-rw-r--r-- | runtime/plugin/matchparen.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/plugin/matchparen.vim b/runtime/plugin/matchparen.vim index 2a5a16a57..873302efe 100644 --- a/runtime/plugin/matchparen.vim +++ b/runtime/plugin/matchparen.vim @@ -1,6 +1,6 @@ " Vim plugin for showing matching parens " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2014 Jul 19 +" Last Change: 2015 Dec 31 " Exit quickly when: " - this plugin was already loaded (or disabled) @@ -55,7 +55,7 @@ function! s:Highlight_Matching_Pair() let before = 0 let text = getline(c_lnum) - let matches = matchlist(text, '\(.\)\=\%'.c_col.'c\(.\)') + let matches = matchlist(text, '\(.\)\=\%'.c_col.'c\(.\=\)') if empty(matches) let [c_before, c] = ['', ''] else |