From 8d4202501d68e165ef85f720e72cb83ce384eab8 Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 24 Mar 2014 23:25:06 +0100 Subject: Use RawConfigParser.get{int,bool,float} whenever possible config.get('option', 'value').lower() == 'value' is just ugly and stupid, especially for bool. One if in basetabs:556 was also missing a comparison, leading to True whenever the option was set. --- src/text_buffer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/text_buffer.py') diff --git a/src/text_buffer.py b/src/text_buffer.py index 2254fa62..919fbe8c 100644 --- a/src/text_buffer.py +++ b/src/text_buffer.py @@ -99,7 +99,7 @@ class TextBuffer(object): ret_val = None for window in self.windows: # make the associated windows # build the lines from the new message - nb = window.build_new_message(msg, history=history, highlight=highlight, timestamp=config.get("show_timestamps", "true") != 'false') + nb = window.build_new_message(msg, history=history, highlight=highlight, timestamp=config.get("show_timestamps", True)) if ret_val is None: ret_val = nb if window.pos != 0: -- cgit v1.2.3