1
0
forked from aniani/vim

patch 9.1.0055: formatting long lines is slow

Problem:  formatting long lines is slow
          (kawaii-Code)
Solution: optimize gq (internal_format) for long
          lines (kawaii-Code)

Implemented two workarounds that significantly reduce
the amount of pointless calls. Ideally the algorithm
would be rewritten not to be n^2, but it's too complicated
with too many corner cases.

closes: #13914

Signed-off-by: kawaii-Code <nia.personal.0@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
kawaii-Code
2024-01-25 21:40:05 +01:00
committed by Christian Brabandt
parent 703f9bc943
commit 78019df645
2 changed files with 26 additions and 6 deletions

View File

@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
55,
/**/
54,
/**/