From 67ba6c75affadb59224756a1b25c8a616aeddc1c Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 19 Jan 2025 19:28:15 -0800 Subject: [PATCH] Cleanup --- lua/argonaut/param.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lua/argonaut/param.lua b/lua/argonaut/param.lua index bc7d5fb..c260966 100644 --- a/lua/argonaut/param.lua +++ b/lua/argonaut/param.lua @@ -262,17 +262,16 @@ function Param:select(inner) local stop_index = self:get_stop_index() stop_cursor = self.cells[stop_index]:get_stop_cursor() else - start_cursor = self.cells[1]:get_start_cursor() - stop_cursor = self.cells[#self.cells]:get_stop_cursor() - local previous_param = self:get_previous() if previous_param then local stop_index = previous_param:get_stop_index() start_cursor = previous_param.cells[stop_index]:get_stop_cursor():get_next() + stop_cursor = self.cells[#self.cells]:get_stop_cursor() else local next_param = self:get_next() if next_param then local start_index = next_param:get_start_index() + start_cursor = self.cells[1]:get_start_cursor() stop_cursor = next_param.cells[start_index]:get_start_cursor():get_previous() else start_cursor = self.range.start_cursor:get_next()