Mercurial > vim
annotate runtime/ftplugof.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 | 4027cefc2aab |
children |
rev | line source |
---|---|
27623 | 1 vim9script |
7 | 2 |
27623 | 3 # Vim support file to switch off loading plugins for file types |
4 # | |
32770
4027cefc2aab
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents:
27623
diff
changeset
|
5 # Maintainer: The Vim Project <https://github.com/vim/vim> |
4027cefc2aab
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents:
27623
diff
changeset
|
6 # Last Change: 2023 Aug 10 |
4027cefc2aab
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents:
27623
diff
changeset
|
7 # Former Maintainer: Bram Moolenaar <Bram@vim.org> |
27623 | 8 |
9 if exists("g:did_load_ftplugin") | |
10 unlet g:did_load_ftplugin | |
7 | 11 endif |
12 | |
27623 | 13 # Remove all autocommands in the filetypeplugin group, if any exist. |
3139 | 14 if exists("#filetypeplugin") |
15 silent! au! filetypeplugin * | |
16 endif |