mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02:00
properly record line info on empty lines
This commit is contained in:
parent
19d84bc16e
commit
a19b503a31
3 changed files with 18 additions and 7 deletions
|
|
@ -1233,6 +1233,13 @@ 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++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue