diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2018-04-24 13:58:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-24 13:58:25 +0200 |
commit | e19d6ee21930a4892b922d751477c4dabad15050 (patch) | |
tree | 8fdbd179c8539cd5f6779ad5f98e765e4a1d2eb4 /src/fe-common | |
parent | 0caf884e9231656b80aa244d04146c27193dd9f2 (diff) | |
parent | 34b31e8451829e7b515a60cf12183203a059d1c4 (diff) | |
download | irssi-e19d6ee21930a4892b922d751477c4dabad15050.zip |
Merge pull request #873 from ailin-nemui/empty_lines
record line info on empty lines
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/formats.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/fe-common/core/formats.c b/src/fe-common/core/formats.c index 4c819c2d..8ad4b3af 100644 --- a/src/fe-common/core/formats.c +++ b/src/fe-common/core/formats.c @@ -1233,6 +1233,15 @@ void format_send_to_gui(TEXT_DEST_REC *dest, const char *text) dup = str = g_strdup(text); flags = 0; fgcolor = theme->default_color; bgcolor = -1; + + if (*str == '\0') { + /* empty line, write line info only */ + signal_emit_id(signal_gui_print_text, 6, dest->window, + GINT_TO_POINTER(fgcolor), + GINT_TO_POINTER(bgcolor), + GINT_TO_POINTER(flags), str, + dest); + } while (*str != '\0') { type = '\0'; for (ptr = str; *ptr != '\0'; ptr++) { |