fix don't show counts on inline popups
@@ -412,7 +412,13 @@ class SublimeLinter(sublime_plugin.EventListener, Listener):
view.set_status(STATUS_KEY, status)
@classmethod
- def join_msgs(cls, line_dict, we_count):
+ def join_msgs(cls, line_dict, we_count, show_count=False):
+
+ if show_count:
+ part = '''
+ <div>{messages}</div>
+ '''
+ else:
part = '''
<div class="{classname}">{count} {heading}</div>
<div>{messages}</div>
@@ -495,13 +501,12 @@ class SublimeLinter(sublime_plugin.EventListener, Listener):
if not line_dict:
return
- tooltip_message = ""
we_count = persist.errors.get_we_count_line(vid, lineno)
if util.is_none_or_zero(we_count):
return
- tooltip_message = self.join_msgs(line_dict, we_count)
+ tooltip_message = self.join_msgs(line_dict, we_count, show_count=is_inline)
if not tooltip_message:
return
