frontend: line-ed: convert all escape code usage to s_tty calls
This commit is contained in:
@@ -7,7 +7,7 @@ void alloc_empty_history_entry(struct line_ed *ed)
|
||||
{
|
||||
b_string *str = (b_string *)b_array_at(
|
||||
ed->l_history, b_array_size(ed->l_history) - 1);
|
||||
if (!str || !b_string_get_size(str, B_STRLEN_NORMAL)) {
|
||||
if (!str || b_string_get_size(str, B_STRLEN_NORMAL) > 0) {
|
||||
str = b_string_create();
|
||||
b_array_append(ed->l_history, (b_object *)str);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user