patch 8.1.2045: the option.c file is too big
Problem: The option.c file is too big.
Solution: Split off the code dealing with strings. (Yegappan Lakshmanan,
closes #4937)
diff --git a/src/os_unix.c b/src/os_unix.c
index 2851459..54989af 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -135,7 +135,7 @@
static char_u *oldtitle = NULL;
static volatile sig_atomic_t oldtitle_outdated = FALSE;
-static int did_set_title = FALSE;
+static int unix_did_set_title = FALSE;
static char_u *oldicon = NULL;
static int did_set_icon = FALSE;
#endif
@@ -2187,7 +2187,7 @@
else
gui_mch_settitle(title, icon);
#endif
- did_set_title = TRUE;
+ unix_did_set_title = TRUE;
}
if ((type || *T_CIS != NUL) && icon != NULL)
@@ -2228,10 +2228,10 @@
void
mch_restore_title(int which)
{
- int do_push_pop = did_set_title || did_set_icon;
+ int do_push_pop = unix_did_set_title || did_set_icon;
/* only restore the title or icon when it has been set */
- mch_settitle(((which & SAVE_RESTORE_TITLE) && did_set_title) ?
+ mch_settitle(((which & SAVE_RESTORE_TITLE) && unix_did_set_title) ?
(oldtitle ? oldtitle : p_titleold) : NULL,
((which & SAVE_RESTORE_ICON) && did_set_icon) ? oldicon : NULL);