From 0cb1752123111d11cc48a0b6cf15d11539599995 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 14 Apr 2001 22:54:06 +0000 Subject: [PATCH] related changes to textbuffer update.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1444 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/fe-windows.h | 1 - src/fe-common/core/formats.c | 11 ++++------- src/fe-common/core/printtext.c | 1 - src/perl/perl-fe.c | 2 -- 4 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/fe-common/core/fe-windows.h b/src/fe-common/core/fe-windows.h index e27897e0..c9ffe69a 100644 --- a/src/fe-common/core/fe-windows.h +++ b/src/fe-common/core/fe-windows.h @@ -33,7 +33,6 @@ typedef struct { int level; /* message level */ GSList *bound_items; /* list of WINDOW_BIND_RECs */ - int lines; unsigned int sticky_refnum:1; unsigned int destroying:1; diff --git a/src/fe-common/core/formats.c b/src/fe-common/core/formats.c index a8a2ac7f..ae8e7630 100644 --- a/src/fe-common/core/formats.c +++ b/src/fe-common/core/formats.c @@ -573,13 +573,10 @@ void format_newline(WINDOW_REC *window) { g_return_if_fail(window != NULL); - window->lines++; - if (window->lines != 1) { - signal_emit_id(signal_gui_print_text, 6, window, - GINT_TO_POINTER(-1), GINT_TO_POINTER(-1), - GINT_TO_POINTER(PRINTFLAG_NEWLINE), - "", GINT_TO_POINTER(-1)); - } + signal_emit_id(signal_gui_print_text, 6, window, + GINT_TO_POINTER(-1), GINT_TO_POINTER(-1), + GINT_TO_POINTER(PRINTFLAG_NEWLINE), + "", GINT_TO_POINTER(-1)); } /* parse ANSI color string */ diff --git a/src/fe-common/core/printtext.c b/src/fe-common/core/printtext.c index 0b4c1d0d..ab1eafcd 100644 --- a/src/fe-common/core/printtext.c +++ b/src/fe-common/core/printtext.c @@ -377,7 +377,6 @@ static void sig_print_text(TEXT_DEST_REC *dest, const char *text) msg_beep_check(dest); dest->window->last_line = time(NULL); - format_newline(dest->window); /* add timestamp/server tag here - if it's done in print_line() it would be written to log files too */ diff --git a/src/perl/perl-fe.c b/src/perl/perl-fe.c index 5584ca85..4594fd75 100644 --- a/src/perl/perl-fe.c +++ b/src/perl/perl-fe.c @@ -57,8 +57,6 @@ static void perl_window_fill_hash(HV *hv, WINDOW_REC *window) if (window->active_server) hv_store(hv, "active_server", 13, irssi_bless(window->active_server), 0); - hv_store(hv, "lines", 5, newSViv(window->lines), 0); - hv_store(hv, "level", 5, newSViv(window->level), 0); hv_store(hv, "data_level", 8, newSViv(window->data_level), 0); hv_store(hv, "hilight_color", 10, new_pv(window->hilight_color), 0);