Mercurial > vim
annotate runtime/ftplugin/jsp.vim @ 15973:393a9a3a2da2 v8.1.0992
patch 8.1.0992: a :normal command resets the reg_executing() result
commit https://github.com/vim/vim/commit/cce713ddcc0c9ab29926c28e287cbb587a959b08
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Mar 4 11:40:12 2019 +0100
patch 8.1.0992: a :normal command resets the reg_executing() result
Problem: A :normal command while executing a register resets the
reg_executing() result.
Solution: Save and restore reg_executing. (closes #4066)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 04 Mar 2019 11:45:07 +0100 |
parents | 94601b379f38 |
children | c968191a8557 |
rev | line source |
---|---|
7 | 1 " Vim filetype plugin file |
2 " Language: jsp | |
2034 | 3 " Maintainer: Dan Sharp <dwsharp at users dot sourceforge dot net> |
4 " Last Changed: 20 Jan 2009 | |
5 " URL: http://dwsharp.users.sourceforge.net/vim/ftplugin | |
7 | 6 |
7 if exists("b:did_ftplugin") | finish | endif | |
8 | |
9 " Make sure the continuation lines below do not cause problems in | |
10 " compatibility mode. | |
11 let s:save_cpo = &cpo | |
12 set cpo-=C | |
13 | |
14 " Define some defaults in case the included ftplugins don't set them. | |
15 let s:undo_ftplugin = "" | |
16 let s:browsefilter = "Java Files (*.java)\t*.java\n" . | |
15 | 17 \ "HTML Files (*.html, *.htm)\t*.html;*.htm\n" . |
7 | 18 \ "All Files (*.*)\t*.*\n" |
19 let s:match_words = "" | |
20 | |
21 runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim | |
22 unlet b:did_ftplugin | |
23 | |
24 " Override our defaults if these were set by an included ftplugin. | |
25 if exists("b:undo_ftplugin") | |
26 let s:undo_ftplugin = b:undo_ftplugin | |
27 unlet b:undo_ftplugin | |
28 endif | |
29 if exists("b:browsefilter") | |
30 let s:browsefilter = b:browsefilter | |
31 unlet b:browsefilter | |
32 endif | |
33 if exists("b:match_words") | |
34 let s:match_words = b:match_words | |
35 unlet b:match_words | |
36 endif | |
37 | |
38 runtime! ftplugin/java.vim ftplugin/java_*.vim ftplugin/java/*.vim | |
39 let b:did_ftplugin = 1 | |
40 | |
41 " Combine the new set of values with those previously included. | |
42 if exists("b:undo_ftplugin") | |
43 let s:undo_ftplugin = b:undo_ftplugin . " | " . s:undo_ftplugin | |
44 endif | |
45 if exists ("b:browsefilter") | |
46 let s:browsefilter = b:browsefilter . s:browsefilter | |
47 endif | |
48 if exists("b:match_words") | |
551 | 49 let s:match_words = b:match_words . ',' . s:match_words |
7 | 50 endif |
51 | |
52 " Load the combined list of match_words for matchit.vim | |
53 if exists("loaded_matchit") | |
54 let b:match_words = s:match_words | |
55 endif | |
56 | |
57 " Change the :browse e filter to primarily show JSP-related files. | |
58 if has("gui_win32") | |
59 let b:browsefilter="JSP Files (*.jsp)\t*.jsp\n" . s:browsefilter | |
60 endif | |
61 | |
62 " Undo the stuff we changed. | |
63 let b:undo_ftplugin = "unlet! b:browsefilter b:match_words | " . s:undo_ftplugin | |
64 | |
65 " Restore the saved compatibility options. | |
66 let &cpo = s:save_cpo | |
3410
94601b379f38
Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents:
2034
diff
changeset
|
67 unlet s:save_cpo |