diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2018-05-07 21:22:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-07 21:22:43 +0200 |
commit | 631650bd8ab467af8347b5d9b51b2b0193adfe63 (patch) | |
tree | 0b4566b41b46d7a3c3b25786fb8554127a749753 /src/fe-text | |
parent | 0a0c755b89c932f058899011d73bedf3a516a8d5 (diff) | |
download | irssi-631650bd8ab467af8347b5d9b51b2b0193adfe63.zip |
Revert "record line info on empty lines"
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/textbuffer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fe-text/textbuffer.c b/src/fe-text/textbuffer.c index 9e1ace96..01cdd118 100644 --- a/src/fe-text/textbuffer.c +++ b/src/fe-text/textbuffer.c @@ -355,6 +355,9 @@ 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); |