[vim/vim] search avoid repeated completion length lookup (PR #20678)

2 views
Skip to first unread message

glepnir

unread,
8:58 AM (11 hours ago) 8:58 AM
to vim/vim, Subscribed

Problem: search_for_exact_line() repeatedly calls ins_compl_len() and relies on ternary operator precedence.

Solution: Cache the completion length and parenthesize the ternary expression.


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

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

Commit Summary

  • bd7c072 search: avoid repeated completion length lookup

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20678@github.com>

Christian Brabandt

unread,
2:08 PM (6 hours ago) 2:08 PM
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#20678)

thanks


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

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

Reply all
Reply to author
Forward
0 new messages