Fix character insert merge logic (left testing stuff in there woops!)
This commit is contained in:
parent
c5d6cbbd2d
commit
a19492dfd7
|
@ -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){
|
if (record.error == RecordError_NoError && record.kind == RecordKind_Single){
|
||||||
String string = record.single.string_forward;
|
String string = record.single.string_forward;
|
||||||
int32_t last_end = record.single.first + string.size;
|
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];
|
char c = string.str[string.size - 1];
|
||||||
if (c != '\n'){
|
if (c != '\n'){
|
||||||
if (char_is_whitespace(character[0]) && char_is_whitespace(c)){
|
if (char_is_whitespace(character[0]) && char_is_whitespace(c)){
|
||||||
|
|
Loading…
Reference in New Issue