Mercurial > vim
annotate runtime/compiler/neato.vim @ 34665:ca2da8e8fb53 v9.1.0215
patch 9.1.0215: Half-page scrolling does not support smooth-scrolling
Commit: https://github.com/vim/vim/commit/5a2e3ec9ac72b6e644fea4ebba7e632498296e2f
Author: Luuk van Baal <luukvbaal@gmail.com>
Date: Thu Mar 28 10:07:29 2024 +0100
patch 9.1.0215: Half-page scrolling does not support smooth-scrolling
Problem: Page-wise scrolling with Ctrl-D/Ctrl-U implements
it's own logic to change the topline and cursor.
More logic than necessary for scrolling with Ctrl-F/Ctrl-B
was removed in patch 9.1.0211.
Solution: Re-use the logic from Ctrl-E/Ctrl-Y/Ctrl-F/Ctrl-B while
staying backward compatible as much as possible.
Restore some of the logic that determined how many lines will
be scrolled (Luuk van Baal)
closes: #14316
Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 28 Mar 2024 10:15:08 +0100 |
parents | 80a9b43d299b |
children | e1df51f68736 |
rev | line source |
---|---|
7 | 1 " Vim compiler file |
2 " Compiler: ATT neato | |
3 " Maintainer: Marcos Macedo <bar4ka@bol.com.br> | |
34629
80a9b43d299b
runtime(compiler): update errorformat for dot and neato compiler (#14257)
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
4 " Last Change: 2024 March 21 |
7 | 5 |
6 if exists("current_compiler") | |
7 finish | |
8 endif | |
9 let current_compiler = "neato" | |
10 | |
11 if exists(":CompilerSet") != 2 " older Vim always used :setlocal | |
12 command -nargs=* CompilerSet setlocal <args> | |
13 endif | |
14 | |
15 CompilerSet makeprg=neato\ -T$*\ \"%:p\"\ -o\ \"%:p:r.$*\" | |
34629
80a9b43d299b
runtime(compiler): update errorformat for dot and neato compiler (#14257)
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
16 " matches error messages as below skipping final part after line number |
80a9b43d299b
runtime(compiler): update errorformat for dot and neato compiler (#14257)
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
17 " Error: ./file.dot: syntax error in line 1 near 'rankdir' |
80a9b43d299b
runtime(compiler): update errorformat for dot and neato compiler (#14257)
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
18 CompilerSet errorformat=%trror:\ %f:\ %m\ in\ line\ %l%.%# |