From 199ac46d90576062ae21e49cc266d53d1ede8689 Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 3 Feb 2014 23:37:22 +0100 Subject: Fix #2208 (time_marker shows an useless timestamp) --- src/windows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/windows.py b/src/windows.py index bd6c32bc..ff145d13 100644 --- a/src/windows.py +++ b/src/windows.py @@ -967,7 +967,7 @@ class TextWin(Win): else: self.write_text(y, # Offset for the timestamp (if any) plus a space after it - (0 if not with_timestamps else (len(line.msg.str_time) + 1)) + + (0 if not with_timestamps else (len(line.msg.str_time) + (1 if line.msg.str_time else 0) )) + # Offset for the nickname (if any) plus a space and a > after it (0 if not line.msg.nickname else (poopt.wcswidth(truncate_nick(line.msg.nickname)) + (3 if line.msg.me else 2) + ceil(log10(line.msg.revisions + 1)))), line.prepend+line.msg.txt[line.start_pos:line.end_pos]) -- cgit v1.2.3