Skip to content

Commit bcd96c8

Browse files
committed
Do not consider tab width when jumping to a run error column number.
1 parent ddf0299 commit bcd96c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/textadept/run.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ function M.goto_error(location)
422422
local sloppy = not filename:find(not WIN32 and '^/' or '^%a?:?[/\\][/\\]?')
423423
ui.goto_file(filename, true, preferred_view, sloppy)
424424
textadept.editing.goto_line(line)
425-
if column then buffer:goto_pos(buffer:find_column(line, column)) end
425+
if column then buffer:goto_pos(buffer:position_relative(buffer.current_pos, column - 1)) end
426426
if not message then return end
427427
buffer.annotation_text[line] = message
428428
if buffer.line_state[line_num] > 1 then return end -- non-error

0 commit comments

Comments
 (0)