Mercurial > vim
annotate runtime/ftplugin/csc.vim @ 16650:06fd0eaada01 v8.1.1327
patch 8.1.1327: unnecessary scroll after horizontal split
commit https://github.com/vim/vim/commit/a9b2535f44f3265940a18d08520a9ad4ef7bda82
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 12 14:25:30 2019 +0200
patch 8.1.1327: unnecessary scroll after horizontal split
Problem: Unnecessary scroll after horizontal split.
Solution: Don't adjust to fraction if all the text fits in the window.
(Martin Kunev, closes #4367)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 12 May 2019 14:30:08 +0200 |
parents | 94601b379f38 |
children | c968191a8557 |
rev | line source |
---|---|
7 | 1 " Vim filetype plugin file |
2 " Language: csc | |
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 let b:did_ftplugin = 1 | |
9 | |
10 " Make sure the continuation lines below do not cause problems in | |
11 " compatibility mode. | |
12 let s:save_cpo = &cpo | |
13 set cpo-=C | |
14 | |
15 if exists("loaded_matchit") | |
16 let b:match_words= | |
17 \ '\<fix\>:\<endfix\>,' . | |
18 \ '\<if\>:\<else\%(if\)\=\>:\<endif\>,' . | |
19 \ '\<!loopondimensions\>\|\<!looponselected\>:\<!endloop\>' | |
20 endif | |
21 | |
22 " Undo the stuff we changed. | |
23 let b:undo_ftplugin = "unlet! b:match_words" | |
24 | |
25 " Restore the saved compatibility options. | |
26 let &cpo = s:save_cpo | |
3410
94601b379f38
Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents:
2034
diff
changeset
|
27 unlet s:save_cpo |