From bcd96c8a2528a7d8edac25effbecc9425d813e12 Mon Sep 17 00:00:00 2001 From: orbitalquark <70453897+orbitalquark@users.noreply.github.com> Date: Mon, 7 Oct 2024 16:17:18 -0400 Subject: [PATCH] Do not consider tab width when jumping to a run error column number. --- modules/textadept/run.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua index e0d359d4..6a1a9915 100644 --- a/modules/textadept/run.lua +++ b/modules/textadept/run.lua @@ -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