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
This commit is contained in:
Kovid Goyal 2023-04-26 15:55:56 +05:30
parent 6a07435bb0
commit a7b4d07601
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 6 additions and 1 deletions

View File

@ -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]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -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