Skip to content

Commit

Permalink
Do not consider tab width when jumping to a run error column number.
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitalquark committed Oct 7, 2024
1 parent ddf0299 commit bcd96c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/textadept/run.lua
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ function M.goto_error(location)
local sloppy = not filename:find(not WIN32 and '^/' or '^%a?:?[/\\][/\\]?')
ui.goto_file(filename, true, preferred_view, sloppy)
textadept.editing.goto_line(line)
if column then buffer:goto_pos(buffer:find_column(line, column)) end
if column then buffer:goto_pos(buffer:position_relative(buffer.current_pos, column - 1)) end
if not message then return end
buffer.annotation_text[line] = message
if buffer.line_state[line_num] > 1 then return end -- non-error
Expand Down

0 comments on commit bcd96c8

Please sign in to comment.