[vim/vim] Refactor home_replace() to return string length (PR #20249)

0 views
Skip to first unread message

John Marriott

unread,
May 18, 2026, 9:19:43 PM (4 hours ago) May 18
to vim/vim, Subscribed

Refactor home_replace() to return the length of the string stored in dst (excluding the NUL).

Use the return value where it makes sense.

In addition in memline.c:
In function set_b0_fname() move ulen into the block where it is used.
In function findswapname() rework logic around displaying "swap file already exists" dialogue so that literal message text is set once.

Cheers
John


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

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

Commit Summary

  • d70c7df Refactor home_replace() to return string length

File Changes

(6 files)

Patch Links:


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.Message ID: <vim/vim/pull/20249@github.com>

John Marriott

unread,
May 18, 2026, 10:21:04 PM (3 hours ago) May 18
to vim/vim, Push

@basilisk0315 pushed 1 commit.


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.Message ID: <vim/vim/pull/20249/before/d70c7dfb039bc30587a5379da6adf7100d84dc99/after/15c1de771497cb2ce01f809755491f98d149ff82@github.com>

Reply all
Reply to author
Forward
0 new messages