From a7b4d076014b5f6e3ae984182d2835d08fb890a2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 26 Apr 2023 15:55:56 +0530 Subject: [PATCH] unicode_input kitten: Fix a regression in 0.28.0 that caused the order of recent and favorites entries to not be respected Fixes #6214 --- docs/changelog.rst | 5 +++++ kittens/unicode_input/table.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index bf936deab..4e0cd6ef5 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -35,6 +35,11 @@ mouse anywhere in the current command to move the cursor there. See Detailed list of changes ------------------------------------- +0.28.2 [2023-04-21] +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +- unicode_input kitten: Fix a regression in 0.28.0 that caused the order of recent and favorites entries to not be respected (:iss:`6214`) + 0.28.1 [2023-04-21] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/kittens/unicode_input/table.go b/kittens/unicode_input/table.go index 473488784..3661c6a15 100644 --- a/kittens/unicode_input/table.go +++ b/kittens/unicode_input/table.go @@ -82,7 +82,7 @@ func (self *table) current_codepoint() rune { func (self *table) set_codepoints(codepoints []rune, mode Mode, current_idx int) { self.codepoints = codepoints - if self.codepoints != nil { + if self.codepoints != nil && mode != FAVORITES && mode != HEX { slices.Sort(self.codepoints) } self.mode = mode