dotfiles

personal dotfiles
git clone anongit@rnpnr.xyz:dotfiles.git
Log | Files | Refs | Feed | Submodules

Commit: d3da148e661e6e4ff164881266e918613bd70b81
Parent: 2c7506f93c7f3733e8b6beaab019ddf2106f2ed3
Author: Randy Palamar
Date:   Wed, 11 Sep 2024 07:25:55 -0600

vis: goto-ref: fix column handling in iterator

Diffstat:
M.config/vis/goto-ref.lua | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.config/vis/goto-ref.lua b/.config/vis/goto-ref.lua @@ -17,7 +17,8 @@ M.generate_iterators = function(file_index_table) local iterate = function(inc) local file, line, col = table.unpack(file_index_table[current_index]) focus_file(file) - vis.win.selection:to(line, type(col) == 'number' and col or 1) + if type(col) == 'string' then col = tonumber(col) end + vis.win.selection:to(line, col and col or 1) current_index = current_index + inc if current_index > #file_index_table then current_index = 1