Problem:
A leading space in the result of a %{} item is sometimes stripped, and an all-digit result is converted to a number.
Solution:
Add %0{} which inserts the expression result verbatim.
Fix #3898
https://github.com/vim/vim/pull/20315
(3 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
@glepnir pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@zeertzjq commented on this pull request.
In src/buffer.c:
> @@ -5078,7 +5079,7 @@ build_stl_str_hl_local( do_unlet((char_u *)"g:actual_curbuf", TRUE); do_unlet((char_u *)"g:actual_curwin", TRUE); - if (str != NULL && *str != NUL) + if (zeropad == FALSE && str != NULL && *str != NUL)⬇️ Suggested change
- if (zeropad == FALSE && str != NULL && *str != NUL) + if (!zeropad && str != NULL && *str != NUL)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
@glepnir pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()