CE KB_DELETE fix concatenating with last line
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m41s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m41s
This commit is contained in:
@@ -299,7 +299,7 @@ void edit_start (const char* file_path, const char* text, size_t text_len) {
|
|||||||
if (editor.current_line->gb.gap_end < editor.current_line->gb.size)
|
if (editor.current_line->gb.gap_end < editor.current_line->gb.size)
|
||||||
editor.current_line->gb.gap_end++;
|
editor.current_line->gb.gap_end++;
|
||||||
} else {
|
} else {
|
||||||
if (editor.cursor.line > 0) {
|
if (editor.current_line->lines_link.next != NULL) {
|
||||||
struct list_node_link* next = editor.current_line->lines_link.next;
|
struct list_node_link* next = editor.current_line->lines_link.next;
|
||||||
struct edit_line* next_line = list_entry (next, struct edit_line, lines_link);
|
struct edit_line* next_line = list_entry (next, struct edit_line, lines_link);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user