record line info on empty lines

This commit is contained in:
ailin-nemui 2018-04-16 16:19:54 +02:00
commit 34b31e8451
2 changed files with 9 additions and 3 deletions

View file

@ -355,9 +355,6 @@ LINE_REC *textbuffer_insert(TEXT_BUFFER_REC *buffer, LINE_REC *insert_after,
g_return_val_if_fail(buffer != NULL, NULL);
g_return_val_if_fail(data != NULL, NULL);
if (len == 0)
return insert_after;
line = !buffer->last_eol ? insert_after :
textbuffer_line_insert(buffer, insert_after);