mirror of
https://github.com/vim/vim.git
synced 2025-11-12 22:44:34 -05:00
patch 9.1.1367: too many strlen() calls in gui.c
Problem: too many strlen() calls in gui.c Solution: refactor gui.c slightly (John Marriott) This does the following changes: - use macro STRCMP() instead of strcmp(). - refactor gui_outstr_nowrap() to remove call to STRLEN(). - refactor get_tabline_label() in attempt to simply it. At the same time use standard looping construct for iterating over windows in a tab. Move variables closer to where they are used. Add check that we don't exceed size of NameBuff. - small optimisation in get_find_dialog_text() to measure the string length once. closes: #17269 Signed-off-by: John Marriott <basilisk@internode.on.net> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
38972d8b1a
commit
d2fcbb465d
@@ -704,6 +704,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1367,
|
||||
/**/
|
||||
1366,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user