]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0506: home_replace() function can be improved v9.2.0506
authorJohn Marriott <basilisk@internode.on.net>
Wed, 20 May 2026 18:38:55 +0000 (18:38 +0000)
committerChristian Brabandt <cb@256bit.org>
Wed, 20 May 2026 18:42:53 +0000 (18:42 +0000)
commita0931a90eeee6692556f330b5ba1fb413f9ea85d
treefe59362ec0e01e95a9545c3c2d5339ee5a0cff0c
parentaee12156ee3018efcdae87a8c2c327db386f0a5d
patch 9.2.0506: home_replace() function can be improved

Problem:  home_replace() function can be improved
Solution: Refactor home_replace() to return the length of the string
          (John Marriott).

In addition:
- 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.

closes: #20249

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/buffer.c
src/fileio.c
src/filepath.c
src/memline.c
src/po/vim.pot
src/proto/filepath.pro
src/version.c
src/viminfo.c