annotate runtime/ftplugin/racc.vim @ 34153:c7779252fab5
v9.1.0037
patch 9.1.0037: Calling get_breakindent_win() repeatedly when computing virtcol
Commit: https://github.com/vim/vim/commit/5b0722b86445158f0b502ffc48a5847b0d0187bd
Author: zeertzjq <zeertzjq@outlook.com>
Date: Wed Jan 17 20:42:53 2024 +0100
patch 9.1.0037: Calling get_breakindent_win() repeatedly when computing virtcol
Problem: Calling get_breakindent_win() repeatedly when computing
virtual column, and get_breakindent_win() does a STRCMP() on
the whole line since patch 9.0.0016.
Solution: Cache the result, since the line doesn't change.
(zeertzjq)
closes: #13879
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author |
Christian Brabandt <cb@256bit.org> |
date |
Wed, 17 Jan 2024 20:45:03 +0100 |
parents |
1218c5353e2b |
children |
|
rev |
line source |
375
|
1 " Vim filetype plugin file
|
11062
|
2 " Language: Racc input file
|
|
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
|
4 " Latest Revision: 2008-07-09
|
375
|
5
|
|
6 if exists("b:did_ftplugin")
|
|
7 finish
|
|
8 endif
|
|
9 let b:did_ftplugin = 1
|
|
10
|
1698
|
11 let s:cpo_save = &cpo
|
|
12 set cpo&vim
|
|
13
|
389
|
14 let b:undo_ftplugin = "setl com< cms< fo<"
|
375
|
15
|
|
16 setlocal comments=s1:/*,mb:*,ex:*/,:# commentstring=#\ %s
|
389
|
17 setlocal formatoptions-=t formatoptions+=croql
|
1698
|
18
|
|
19 let &cpo = s:cpo_save
|
|
20 unlet s:cpo_save
|