diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-08-07 22:31:44 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-08-07 22:31:44 +0200 |
commit | 40385dbcdfb44885f2e9b83e1e0285aeb8a0c2a8 (patch) | |
tree | 35de952db98f597df68144ef4ab99a294177861d /src/term.h | |
parent | de3b3677f7eace66be454196db0fbf710cfc8c5e (diff) | |
download | vim-git-40385dbcdfb44885f2e9b83e1e0285aeb8a0c2a8.tar.gz |
patch 8.1.0253: saving and restoring window title does not always workv8.1.0253
Problem: Saving and restoring window title does not always work.
Solution: Use the stack push and pop commands. (Kouichi Iwamoto,
closes #3059)
Diffstat (limited to 'src/term.h')
-rw-r--r-- | src/term.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/term.h b/src/term.h index 8808f7db1..219a2083d 100644 --- a/src/term.h +++ b/src/term.h @@ -101,10 +101,14 @@ enum SpecialKey KS_CBE, /* enable bracketed paste mode */ KS_CBD, /* disable bracketed paste mode */ KS_CPS, /* start of bracketed paste */ - KS_CPE /* end of bracketed paste */ + KS_CPE, /* end of bracketed paste */ + KS_CST, /* save window title */ + KS_CRT, /* restore window title */ + KS_SSI, /* save icon text */ + KS_SRI /* restore icon text */ }; -#define KS_LAST KS_CPE +#define KS_LAST KS_SRI /* * the terminal capabilities are stored in this array @@ -196,6 +200,10 @@ extern char_u *(term_strings[]); /* current terminal strings */ #define T_BD (TERM_STR(KS_CBD)) /* disable bracketed paste mode */ #define T_PS (TERM_STR(KS_CPS)) /* start of bracketed paste */ #define T_PE (TERM_STR(KS_CPE)) /* end of bracketed paste */ +#define T_CST (TERM_STR(KS_CST)) /* save window title */ +#define T_CRT (TERM_STR(KS_CRT)) /* restore window title */ +#define T_SSI (TERM_STR(KS_SSI)) /* save icon text */ +#define T_SRI (TERM_STR(KS_SRI)) /* restore icon text */ #define TMODE_COOK 0 /* terminal mode for external cmds and Ex mode */ #define TMODE_SLEEP 1 /* terminal mode for sleeping (cooked but no echo) */ |