Mercurial > vim
annotate runtime/ftplugin/postscr.vim @ 22886:38324d4f1c94 v8.2.1990
patch 8.2.1990: cursor position wrong in terminal popup with finished job
Commit: https://github.com/vim/vim/commit/6a07644db30cb5f3d0c6dc5eb2c348b6289da553
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 15 20:32:58 2020 +0100
patch 8.2.1990: cursor position wrong in terminal popup with finished job
Problem: Cursor position wrong in terminal popup with finished job.
Solution: Only add the top and left offset when not done already.
(closes #7298)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 15 Nov 2020 20:45:03 +0100 |
parents | 1be42b88900e |
children | 8ae680be2a51 |
rev | line source |
---|---|
7 | 1 " Vim filetype plugin file |
3281 | 2 " Language: PostScript |
3 " Maintainer: Mike Williams <mrw@eandem.co.uk> | |
3492 | 4 " Last Change: 24th April 2012 |
7 | 5 |
6 " Only do this when not done yet for this buffer | |
7 if exists("b:did_ftplugin") | |
8 finish | |
9 endif | |
10 | |
11 " Don't load another plugin for this buffer | |
12 let b:did_ftplugin = 1 | |
13 | |
3281 | 14 let s:cpo_save = &cpo |
15 set cpo&vim | |
16 | |
7 | 17 " PS comment formatting |
18 setlocal comments=b:% | |
19 setlocal formatoptions-=t formatoptions+=rol | |
20 | |
21 " Define patterns for the matchit macro | |
22 if !exists("b:match_words") | |
23 let b:match_ignorecase = 0 | |
24 let b:match_words = '<<:>>,\<begin\>:\<end\>,\<save\>:\<restore\>,\<gsave\>:\<grestore\>' | |
25 endif | |
26 | |
27 " Define patterns for the browse file filter | |
28 if has("gui_win32") && !exists("b:browsefilter") | |
29 let b:browsefilter = "PostScript Files (*.ps)\t*.ps\n" . | |
30 \ "EPS Files (*.eps)\t*.eps\n" . | |
31 \ "All Files (*.*)\t*.*\n" | |
32 endif | |
3281 | 33 |
3493
1be42b88900e
Updated runtime files, include fixes for line continuation.
Bram Moolenaar <bram@vim.org>
parents:
3492
diff
changeset
|
34 let b:undo_ftplugin = "setlocal comments< formatoptions<" |
1be42b88900e
Updated runtime files, include fixes for line continuation.
Bram Moolenaar <bram@vim.org>
parents:
3492
diff
changeset
|
35 \ . "| unlet! b:browsefiler b:match_ignorecase b:match_words" |
1be42b88900e
Updated runtime files, include fixes for line continuation.
Bram Moolenaar <bram@vim.org>
parents:
3492
diff
changeset
|
36 |
3281 | 37 let &cpo = s:cpo_save |
38 unlet s:cpo_save |