Updated linewrap and autocomplete to use the new get_line_screen_position which takes a col.
This commit is contained in:
@@ -228,8 +228,7 @@ local function get_suggestions_rect(av)
|
||||
end
|
||||
|
||||
local line, col = av.doc:get_selection()
|
||||
local x, y = av:get_line_screen_position(line)
|
||||
x = x + av:get_col_x_offset(line, col - #partial)
|
||||
local x, y = av:get_line_screen_position(line, col - #partial)
|
||||
y = y + av:get_line_height() + style.padding.y
|
||||
local font = av:get_font()
|
||||
local th = font:get_height()
|
||||
|
||||
Reference in New Issue
Block a user