Mercurial > vim
annotate runtime/indent/d.vim @ 30207:7147c6059e80 v9.0.0439
patch 9.0.0439: cursor wrong if inserting before line with virtual text above
Commit: https://github.com/vim/vim/commit/88b79cb7d47e2e1fee1baf4016c50b861e6b21c4
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 10 22:32:14 2022 +0100
patch 9.0.0439: cursor wrong if inserting before line with virtual text above
Problem: Cursor wrong if inserting before line with virtual text above.
Solution: Add the width of the "above" virtual text to the cursor position.
(issue #11084)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 10 Sep 2022 23:45:02 +0200 |
parents | 6dd88e45d47d |
children |
rev | line source |
---|---|
557 | 1 " Vim indent file for the D programming language (version 0.137). |
2 " Language: D | |
25880 | 3 " Maintainer: Jason Mills <jmills@cs.mun.ca> (Invalid email address) |
4 " Doug Kearns <dougkearns@gmail.com> | |
28379 | 5 " Last Change: 2022 Apr 06 |
557 | 6 " Version: 0.1 |
7 " | |
8 " Please email me with bugs, comments, and suggestion. Put vim in the subject | |
9 " to ensure the email will not be marked has spam. | |
10 " | |
11 | |
12 " Only load this indent file when no other was loaded. | |
13 if exists("b:did_indent") | |
14 finish | |
15 endif | |
16 | |
17 let b:did_indent = 1 | |
18 | |
19 " D indenting is a lot like the built-in C indenting. | |
20 setlocal cindent | |
21 | |
28379 | 22 let b:undo_indent = "setl cin<" |
23 | |
557 | 24 " vim: ts=8 noet |