annotate runtime/ftplugin/typescriptreact.vim @ 22210:d6f6f9fed7d7 v8.2.1654

patch 8.2.1654: when job writes to hidden buffer current window is wrong Commit: https://github.com/vim/vim/commit/ad9ec5e79916d206fd7677b77e36485c47ae534f Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 10 21:25:45 2020 +0200 patch 8.2.1654: when job writes to hidden buffer current window is wrong Problem: When job writes to hidden buffer current window has display errors. (Johnny McArthur) Solution: Use aucmd_prepbuf() instead of switch_to_win_for_buf(). (closes #6925)
author Bram Moolenaar <Bram@vim.org>
date Thu, 10 Sep 2020 21:30:03 +0200
parents 0db0640e16e0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
21825
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Vim filetype plugin file
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Language: TypeScript React
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Maintainer: Doug Kearns <dougkearns@gmail.com>
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 " Last Change: 2020 Aug 09
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 let s:match_words = ""
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 let s:undo_ftplugin = ""
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 runtime! ftplugin/typescript.vim
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 let s:cpo_save = &cpo
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 set cpo-=C
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14 if exists("b:match_words")
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15 let s:match_words = b:match_words
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 endif
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17 if exists("b:undo_ftplugin")
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18 let s:undo_ftplugin = b:undo_ftplugin
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19 endif
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
21 " Matchit configuration
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
22 if exists("loaded_matchit")
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
23 let b:match_ignorecase = 0
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
24 let b:match_words = s:match_words .
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
25 \ '<:>,' .
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
26 \ '<\@<=\([^ \t>/]\+\)\%(\s\+[^>]*\%([^/]>\|$\)\|>\|$\):<\@<=/\1>,' .
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
27 \ '<\@<=\%([^ \t>/]\+\)\%(\s\+[^/>]*\|$\):/>'
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
28 endif
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
29
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
30 let b:undo_ftplugin = "unlet! b:match_words b:match_ignorecase | " . s:undo_ftplugin
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
31
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
32 let &cpo = s:cpo_save
0db0640e16e0 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
33 unlet s:cpo_save