Mercurial > vim
annotate runtime/indent/wat.vim @ 34653:8079960136db v9.1.0211
patch 9.1.0211: page-wise scrolling does not support smooth-scrolling
Commit: https://github.com/vim/vim/commit/b9f5b95b7bec2414a5a96010514702d99afea18e
Author: Luuk van Baal <luukvbaal@gmail.com>
Date: Tue Mar 26 18:46:45 2024 +0100
patch 9.1.0211: page-wise scrolling does not support smooth-scrolling
Problem: Page-wise scrolling with Ctrl-F/Ctrl-B implements
it's own logic to change the topline and cursor.
In doing so, skipcol is not handled properly for
'smoothscroll', and virtual lines.
Solution: Re-use the logic from Ctrl-E/Ctrl-Y while staying
backward compatible as much as possible.
closes: #14268
Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 26 Mar 2024 19:00:04 +0100 |
parents | 4913b4f5a133 |
children |
rev | line source |
---|---|
14432 | 1 " Vim indent file |
2 " Language: WebAssembly | |
3 " Maintainer: rhysd <lin90162@yahoo.co.jp> | |
33767
4913b4f5a133
patch 9.0.2104: wast filetype should be replaced by wat filetype
Christian Brabandt <cb@256bit.org>
parents:
14432
diff
changeset
|
4 " Last Change: Nov 14, 2023 |
14432 | 5 " For bugs, patches and license go to https://github.com/rhysd/vim-wasm |
6 | |
7 if exists("b:did_indent") | |
8 finish | |
9 endif | |
10 let b:did_indent = 1 | |
11 | |
12 " WebAssembly text format is S-expression. We can reuse LISP indentation | |
13 " logic. | |
14 setlocal indentexpr=lispindent('.') | |
15 setlocal noautoindent nosmartindent | |
16 | |
17 let b:undo_indent = "setl lisp< indentexpr<" |