Mirror of the Vim source from https://github.com/vim/vim
Revision | ddfb6f3f3b2be6e5397db2601f392c45f4a05b84 (tree) |
---|---|
Time | 2006-05-13 21:48:30 |
Author | vimboss |
Commiter | vimboss |
updated for version 7.0-012
@@ -1,6 +1,6 @@ | ||
1 | 1 | " Vim plugin for showing matching parens |
2 | 2 | " Maintainer: Bram Moolenaar <Bram@vim.org> |
3 | -" Last Change: 2006 Apr 27 | |
3 | +" Last Change: 2006 May 11 | |
4 | 4 | |
5 | 5 | " Exit quickly when: |
6 | 6 | " - this plugin was already loaded (or disabled) |
@@ -90,7 +90,7 @@ | ||
90 | 90 | " Find the match. When it was just before the cursor move it there for a |
91 | 91 | " moment. |
92 | 92 | if before > 0 |
93 | - let save_cursor = getpos('.') | |
93 | + let save_cursor = winsaveview() | |
94 | 94 | call cursor(c_lnum, c_col - before) |
95 | 95 | endif |
96 | 96 |
@@ -102,7 +102,7 @@ | ||
102 | 102 | let [m_lnum, m_col] = searchpairpos(c, '', c2, s_flags, s_skip, stopline) |
103 | 103 | |
104 | 104 | if before > 0 |
105 | - call setpos('.', save_cursor) | |
105 | + call winrestview(save_cursor) | |
106 | 106 | endif |
107 | 107 | |
108 | 108 | " If a match is found setup match highlighting. |
@@ -667,6 +667,8 @@ | ||
667 | 667 | static int included_patches[] = |
668 | 668 | { /* Add new patch number below this line */ |
669 | 669 | /**/ |
670 | + 12, | |
671 | +/**/ | |
670 | 672 | 11, |
671 | 673 | /**/ |
672 | 674 | 10, |