From a19492dfd7207bbf4714ca635f076ce8d2990372 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Sat, 9 Feb 2019 01:07:39 -0800 Subject: [PATCH] Fix character insert merge logic (left testing stuff in there woops!) --- 4coder_base_commands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/4coder_base_commands.cpp b/4coder_base_commands.cpp index a2d1796f..eb6b56ca 100644 --- a/4coder_base_commands.cpp +++ b/4coder_base_commands.cpp @@ -30,7 +30,7 @@ write_character_parameter(Application_Links *app, uint8_t *character, uint32_t l if (record.error == RecordError_NoError && record.kind == RecordKind_Single){ String string = record.single.string_forward; int32_t last_end = record.single.first + string.size; - if ((last_end == pos || true) && string.size > 0){ + if (last_end == pos && string.size > 0){ char c = string.str[string.size - 1]; if (c != '\n'){ if (char_is_whitespace(character[0]) && char_is_whitespace(c)){