]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1137: ins_str() is inefficient by calling STRLEN() v9.1.1137
authorJohn Marriott <basilisk@internode.on.net>
Sun, 23 Feb 2025 08:09:59 +0000 (09:09 +0100)
committerChristian Brabandt <cb@256bit.org>
Sun, 23 Feb 2025 08:09:59 +0000 (09:09 +0100)
commitf4b36417e893ff40296f1a5a264a4ecc6965f1d5
treee234b195b5bf43869be3e79812094a7059022979
parent066a5340e3d7ccc1fd9d1ee3ddf02cdc5ccf2813
patch 9.1.1137: ins_str() is inefficient by calling STRLEN()

Problem:  ins_str() is inefficient by calling STRLLEN()
Solution: refactor ins_str() to take a length argument
          and let all callers provide the correct length
          when calling ins_str() (John Marriott)

closes: #16711

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/change.c
src/edit.c
src/gui.c
src/indent.c
src/insexpand.c
src/ops.c
src/proto/change.pro
src/textformat.c
src/version.c