Mercurial > vim
annotate runtime/ftplugin/plaintex.vim @ 33469:34d6ba6b0a82 v9.0.1987
patch 9.0.1987: win32: font-size calculation can be improved
Commit: https://github.com/vim/vim/commit/da5da654deb46a1432de26c7e02e7eba64c122f3
Author: Ken Takata <kentkt@csc.jp>
Date: Thu Oct 5 20:20:58 2023 +0200
patch 9.0.1987: win32: font-size calculation can be improved
Problem: win32: font-size calculation can be improved
Solution: calculate font size before the window size
Support calculating the new size even if a bitmap font is used.
Calculate the new font size before actually change the Window size.
closes: #13280
related: #11812, #13252
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Ken Takata <kentkt@csc.jp>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 05 Oct 2023 20:30:10 +0200 |
parents | 94601b379f38 |
children |
rev | line source |
---|---|
799 | 1 " plain TeX filetype plugin |
2 " Language: plain TeX (ft=plaintex) | |
3 " Maintainer: Benji Fisher, Ph.D. <benji@member.AMS.org> | |
837 | 4 " Version: 1.1 |
5 " Last Change: Wed 19 Apr 2006 | |
799 | 6 |
7 " Only do this when not done yet for this buffer. | |
8 if exists("b:did_ftplugin") | |
9 finish | |
10 endif | |
11 | |
837 | 12 " Start with initex. This will also define b:did_ftplugin and b:undo_ftplugin . |
13 source $VIMRUNTIME/ftplugin/initex.vim | |
799 | 14 |
15 " Avoid problems if running in 'compatible' mode. | |
16 let s:save_cpo = &cpo | |
17 set cpo&vim | |
18 | |
837 | 19 let b:undo_ftplugin .= "| unlet! b:match_ignorecase b:match_skip b:match_words" |
799 | 20 |
21 " Allow "[d" to be used to find a macro definition: | |
837 | 22 let &l:define .= '\|\\new\(count\|dimen\|skip\|muskip\|box\|toks\|read\|write' |
799 | 23 \ . '\|fam\|insert\)' |
24 | |
25 " The following lines enable the macros/matchit.vim plugin for | |
26 " extended matching with the % key. | |
27 " There is no default meaning for \(...\) etc., but many users define one. | |
28 if exists("loaded_matchit") | |
29 let b:match_ignorecase = 0 | |
30 \ | let b:match_skip = 'r:\\\@<!\%(\\\\\)*%' | |
837 | 31 \ | let b:match_words = '(:),\[:],{:},\\(:\\),\\\[:\\],\\{:\\}' |
799 | 32 endif " exists("loaded_matchit") |
33 | |
34 let &cpo = s:save_cpo | |
3410
94601b379f38
Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents:
837
diff
changeset
|
35 unlet s:save_cpo |
799 | 36 |
37 " vim:sts=2:sw=2: |