]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0138: too many STRLEN calls when getting a memline v9.1.0138
authorJohn Marriott <basilisk@internode.on.net>
Mon, 26 Feb 2024 20:21:17 +0000 (21:21 +0100)
committerChristian Brabandt <cb@256bit.org>
Mon, 26 Feb 2024 20:25:03 +0000 (21:25 +0100)
commit02d7a6c6cfceb3faf9c98fcb7c458760cd50d269
treee80dca75f8301ec9fbdf59936ce8842f5973c57f
parent2c51e15b66a4be9b5134c495ef546479aaa89ce9
patch 9.1.0138: too many STRLEN calls when getting a memline

Problem:  too many STRLEN calls when getting a memline
Solution: Optimize calls to STRLEN(), add a few functions in memline.c
          that return the byte length instead of relying on STRLEN()
          (John Marriott)

closes: #14052

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/memline.c
src/normal.c
src/proto/memline.pro
src/version.c