Problem: The same sub-option name check appears ten times.
Solution: Extract the check into new completing_value_for_subopt() function (Shane Harper).
No functional change.
Previously is_borderhighlight in expand_set_popupoption() was always false: STRNCMP was given "highlight:" instead of "borderhighlight:" as its second argument. There was no user-visible problem with this: is_highlight was already true for "borderhighlight:" (it ends in "highlight:") and the completions for both "borderhighlight:" and "highlight:" are the same.
closes: #NNNN
https://github.com/vim/vim/pull/20676
(1 file)
—
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.![]()
I intend to create another patch to address a minor problem that existed prior to this patch.
# The following fails. There should be no completions for "invalid_close:" but completions
# for "close:" (['on', 'off']) are generated.
call assert_equal([], getcompletion('set completepopup=invalid_close:', 'cmdline'))
—
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.![]()
call assert_equal([], getcompletion('set diffopt=Xalgorithm:', 'cmdline'))
call assert_equal([], getcompletion('set completepopup=invalid_close:', 'cmdline'))
—
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.![]()
Yes, I understand.
With that in mind, I am proposing that we handle the series of corrections in this PR.
I don't think it is necessary to break the changes down into such small increments.
—
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.![]()