[vim/vim] runtime(matchparen): don't do matching on very long lines (PR #15567)

5 views
Skip to first unread message

zeertzjq

unread,
Aug 23, 2024, 11:18:11 PM8/23/24
to vim/vim, Subscribed

On very long lines matching may become slow, so don't do matching if the
cursor column is larger than 'synmaxcol'.

Example:

call setline(1, repeat(' foobar', 100000))
runtime plugin/matchparen.vim
normal! $hhhhhhhh

You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/15567

Commit Summary

  • 290c7a2 runtime(matchparen): don't do matching on very long lines

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/15567@github.com>

zeertzjq

unread,
Aug 24, 2024, 1:37:21 AM8/24/24
to vim/vim, Subscribed

Closed #15567.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/15567/issue_event/13999838407@github.com>

zeertzjq

unread,
Aug 24, 2024, 1:37:22 AM8/24/24
to vim/vim, Subscribed

Actually I found a way to make this faster so that the limit is unnecessary. I'll open a new PR later.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/15567/c2308135447@github.com>

Reply all
Reply to author
Forward
0 new messages