From 7b3792369672ea758fd6e89ce80fa0de49737bad Mon Sep 17 00:00:00 2001 From: raven Date: Tue, 17 Feb 2026 16:41:28 -0600 Subject: alt+arrow navigation through DM list --- client/channel_list.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'client/channel_list.go') diff --git a/client/channel_list.go b/client/channel_list.go index 2c7c51c..cfb1ec4 100644 --- a/client/channel_list.go +++ b/client/channel_list.go @@ -91,7 +91,12 @@ func (cl *channelList) remove(location channelLocation) { } func (cl *channelList) traverse(direction int) int { - next := 0 + var next int + if direction >= 0 { + next = 0 + } else { + next = len(*cl) - 1 + } for i := 0; i < len(*cl); i++ { if (*cl)[i].location == globalApp.currentWindow { next = i + direction -- cgit v1.2.3