Mercurial > vim
annotate runtime/keymap/dvorak.vim @ 33844:58c9f11eae5b v9.0.2134
patch 9.0.2134: ml_get error when scrolling
Commit: https://github.com/vim/vim/commit/c4ffeddfe5bd1824650e9b911ed9245bf56c69e3
Author: Christian Brabandt <cb@256bit.org>
Date: Mon Nov 27 23:25:03 2023 +0100
patch 9.0.2134: ml_get error when scrolling
Problem: ml_get error when scrolling after delete
Solution: mark topline to be validated in main_loop
if it is larger than current buffers line
count
reset_lnums() is called after e.g. TextChanged autocommands and it may
accidentally cause curwin->w_topline to become invalid, e.g. if the
autocommand has deleted some lines.
So verify that curwin->w_topline points to a valid line and if not, mark
the window to have w_topline recalculated in main_loop() in
update_topline() after reset_lnums() returns.
fixes: #13568
fixes: #13578
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 27 Nov 2023 23:30:04 +0100 |
parents | 7bc41231fbc7 |
children |
rev | line source |
---|---|
2034 | 1 " Maintainer: Ashish SHUKLA <wahjava@members.fsf.org> |
2 " Last Changed: 2009 Jul 04 | |
3 " | |
4 " All characters are ASCII, conversion to another encoding (e.g., UTF-8) | |
5 " should work. | |
6 | |
7 let b:keymap_name = "en-dv" | |
8 | |
9 loadkeymap | |
10 q ' | |
11 w , | |
12 e . | |
13 r p | |
14 t y | |
15 y f | |
16 u g | |
17 i c | |
18 o r | |
19 p l | |
20 [ / | |
21 ] = | |
22 \\ \\ | |
23 a a | |
24 s o | |
25 d e | |
26 f u | |
27 g i | |
28 h d | |
29 j h | |
30 k t | |
31 l n | |
32 ; s | |
33 ' - | |
34 z ; | |
35 x q | |
36 c j | |
37 v k | |
38 b x | |
39 n b | |
40 m m | |
41 , w | |
42 . v | |
43 / z | |
44 Z : | |
45 X Q | |
46 C J | |
47 V K | |
48 B X | |
49 N B | |
50 M M | |
51 < W | |
52 > V | |
53 ? Z | |
54 A A | |
55 S O | |
56 D E | |
57 F U | |
58 G I | |
59 H D | |
60 J H | |
61 K T | |
62 L N | |
63 : S | |
64 \" _ | |
65 Q " | |
66 W < | |
67 E > | |
68 R P | |
69 T Y | |
70 Y F | |
71 U G | |
72 I C | |
73 O R | |
74 P L | |
75 { ? | |
76 } + | |
77 | | | |
78 - [ | |
79 _ { | |
80 = ] | |
81 + } | |
82 |