diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-01-01 23:18:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-01 23:18:19 +0800 |
commit | c590641febf4d03e89c46f8e7ef4c3fb2a455520 (patch) | |
tree | 348e7c132c6ee3e8fdd2886340a9ce468b36ca3a /src/nvim/ui_client.h | |
parent | f60cff8f9a253cac5c67199cd00bb9ecd15c5558 (diff) | |
download | rneovim-c590641febf4d03e89c46f8e7ef4c3fb2a455520.tar.gz rneovim-c590641febf4d03e89c46f8e7ef4c3fb2a455520.tar.bz2 rneovim-c590641febf4d03e89c46f8e7ef4c3fb2a455520.zip |
fix(tui): do not set ui_client_termname if it is already set (#21607)
It is fine to initialize ui_client_termname to NULL as it is only used
after tui_start().
Diffstat (limited to 'src/nvim/ui_client.h')
-rw-r--r-- | src/nvim/ui_client.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ui_client.h b/src/nvim/ui_client.h index 0b1f1ecb29..67d16e7fb1 100644 --- a/src/nvim/ui_client.h +++ b/src/nvim/ui_client.h @@ -34,7 +34,7 @@ EXTERN TriState ui_client_bg_respose INIT(= kNone); /// by convention, this uses fd=3 (next free number after stdio) EXTERN bool ui_client_forward_stdin INIT(= false); -EXTERN char *ui_client_termname INIT(= "null"); +EXTERN char *ui_client_termname INIT(= NULL); #define UI_CLIENT_STDIN_FD 3 #ifdef INCLUDE_GENERATED_DECLARATIONS |