aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-01-18 18:52:24 +0100
committerGitHub <noreply@github.com>2023-01-18 18:52:24 +0100
commit92a46727f767d16dfedeaf9a48459e0df1c7a082 (patch)
tree56a3426048076593f669fab192816e58703e0ded /src
parent8a4285d5637c146a0ae606918a8e77063c6a5f0d (diff)
parent6bfbb4db1d3708ce4ea69d29f3afe73def5a9f2a (diff)
downloadrneovim-92a46727f767d16dfedeaf9a48459e0df1c7a082.tar.gz
rneovim-92a46727f767d16dfedeaf9a48459e0df1c7a082.tar.bz2
rneovim-92a46727f767d16dfedeaf9a48459e0df1c7a082.zip
Merge pull request #21881 from bfredl/uniterror
fix(unittests): do not consider process crash to be a success
Diffstat (limited to 'src')
-rw-r--r--src/nvim/tui/input.c2
-rw-r--r--src/nvim/ui_client.c4
-rw-r--r--src/nvim/ui_client.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/tui/input.c b/src/nvim/tui/input.c
index 5325ae3e4d..2cb39ab26b 100644
--- a/src/nvim/tui/input.c
+++ b/src/nvim/tui/input.c
@@ -655,7 +655,7 @@ static HandleState handle_background_color(TermInput *input)
bool is_dark = luminance < 0.5;
char *bgvalue = is_dark ? "dark" : "light";
DLOG("bg response: %s", bgvalue);
- ui_client_bg_respose = is_dark ? kTrue : kFalse;
+ ui_client_bg_response = is_dark ? kTrue : kFalse;
set_bg(bgvalue);
input->waiting_for_bg_response = 0;
} else if (!done && !bad) {
diff --git a/src/nvim/ui_client.c b/src/nvim/ui_client.c
index 222ba3d5dd..378c0e4831 100644
--- a/src/nvim/ui_client.c
+++ b/src/nvim/ui_client.c
@@ -84,8 +84,8 @@ void ui_client_run(bool remote_ui)
if (term) {
PUT(opts, "term_name", STRING_OBJ(cstr_to_string(term)));
}
- if (ui_client_bg_respose != kNone) {
- bool is_dark = (ui_client_bg_respose == kTrue);
+ if (ui_client_bg_response != kNone) {
+ bool is_dark = (ui_client_bg_response == kTrue);
PUT_C(opts, "term_background", STRING_OBJ(cstr_as_string(is_dark ? "dark" : "light")));
}
PUT_C(opts, "term_colors", INTEGER_OBJ(t_colors));
diff --git a/src/nvim/ui_client.h b/src/nvim/ui_client.h
index 201c97f9d3..7e5f847039 100644
--- a/src/nvim/ui_client.h
+++ b/src/nvim/ui_client.h
@@ -31,7 +31,7 @@ EXTERN bool ui_client_attached INIT(= false);
/// Whether ui client has gotten a response about the bg color of the terminal,
/// kTrue=dark, kFalse=light, kNone=no response yet
-EXTERN TriState ui_client_bg_respose INIT(= kNone);
+EXTERN TriState ui_client_bg_response INIT(= kNone);
/// The ui client should forward its stdin to the nvim process
/// by convention, this uses fd=3 (next free number after stdio)