mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 22:14:53 +02:00
diff kitten: Automatically change colors on terminal color scheme change
This commit is contained in:
@@ -22,6 +22,12 @@ func NewLRUCache[K comparable, V any](max_size int) *LRUCache[K, V] {
|
||||
return &ans
|
||||
}
|
||||
|
||||
func (self *LRUCache[K, V]) Clear() {
|
||||
self.lock.RLock()
|
||||
clear(self.data)
|
||||
self.lock.Unlock()
|
||||
}
|
||||
|
||||
func (self *LRUCache[K, V]) Get(key K) (ans V, found bool) {
|
||||
self.lock.RLock()
|
||||
ans, found = self.data[key]
|
||||
|
||||
Reference in New Issue
Block a user