Translate start position for the panel view
Generally, our data is (0, 0) based. We inc (line:col) by one for the
user.
Fixes
@@ -111,8 +111,9 @@ def format_header(f_path):
def format_row(lineno, error_type, dic):
lineno = int(lineno) + 1
- tmpl = " {LINENO:>5}:{start:<4} {ERR_TYPE:7} {linter:>12}: {code:12} {msg}"
- return tmpl.format(LINENO=lineno, ERR_TYPE=error_type, **dic)
+ start = dic['start'] + 1
+ tmpl = " {LINENO:>5}:{START:<4} {ERR_TYPE:7} {linter:>12}: {code:12} {msg}"
+ return tmpl.format(LINENO=lineno, START=start, ERR_TYPE=error_type, **dic)
def fill_panel(window, types=None, codes=None, linter=None, update=False):
