mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Fix #6160
This commit is contained in:
@@ -525,7 +525,10 @@ func (self *handler) update_recent() {
|
||||
name := self.themes_list.CurrentTheme().Name()
|
||||
recent = utils.Remove(recent, name)
|
||||
recent = append([]string{name}, recent...)
|
||||
self.cached_data.Recent = recent[:20]
|
||||
if len(recent) > 20 {
|
||||
recent = recent[:20]
|
||||
}
|
||||
self.cached_data.Recent = recent
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user