diff --git a/fastHistory/pick/pageGeneric.py b/fastHistory/pick/pageGeneric.py index 0ce307b..df7271b 100644 --- a/fastHistory/pick/pageGeneric.py +++ b/fastHistory/pick/pageGeneric.py @@ -95,7 +95,6 @@ def draw_marked_string(self, text, words_to_mark, color_default=1, color_marked= :return: the number of lines printed """ - count_new_lines = 0 for section in self.find_sections_to_mark(text, words_to_mark, case_sensitive, recursive): if not section[self.INDEX_SECTION_IS_MARKED]: color = color_default @@ -109,8 +108,6 @@ def draw_marked_string(self, text, words_to_mark, color_default=1, color_marked= unprinted = self.drawer.draw_row(unprinted, color=color, return_unprinted=True) if unprinted != "": self.drawer.new_line(x=multi_lines_index) - count_new_lines += 1 - return count_new_lines def draw_option(self, option, search_filters, context_shift, last_column_size=0, selected=False): """ diff --git a/fastHistory/pick/pageInfo.py b/fastHistory/pick/pageInfo.py index 831d058..d39cd5d 100644 --- a/fastHistory/pick/pageInfo.py +++ b/fastHistory/pick/pageInfo.py @@ -123,17 +123,15 @@ def draw_info_tags(self, tags, filter_tags): if tags is not None and len(tags) > 0: for tag in tags: self.drawer.draw_row(self.CHAR_TAG, color=self.drawer.color_hash_tag) - count_printed_lines = self.draw_marked_string(tag, filter_tags, - color_marked=self.drawer.color_search, - multi_lines=True, - multi_lines_index=self.INDENT) - self.cursor_y += count_printed_lines + self.draw_marked_string(tag, filter_tags, + color_marked=self.drawer.color_search, + multi_lines=False, + multi_lines_index=self.INDENT) self.drawer.draw_row(self.CHAR_SPACE) else: self.drawer.draw_row("[", color=self.drawer.color_hash_tag) self.drawer.draw_row(self.MESSAGE_NO_TAG) self.drawer.draw_row(self.CHAR_TAG + "]", color=self.drawer.color_hash_tag) - self.cursor_y += 1 self.drawer.new_line() self.cursor_y += 1