mirror of
https://github.com/peco/peco.git
synced 2026-09-10 07:16:29 -04:00
Fix toggle query
This logic makes no sense. It would just immediately undo the line preceeding
This commit is contained in:
parent
a3f06f11be
commit
82faeab193
4
query.go
4
query.go
|
|
@ -16,14 +16,14 @@ func (q *Query) RestoreSavedQuery() {
|
|||
q.mutex.Lock()
|
||||
defer q.mutex.Unlock()
|
||||
q.query = q.savedQuery
|
||||
q.query = []rune(nil)
|
||||
q.savedQuery = []rune(nil)
|
||||
}
|
||||
|
||||
func (q *Query) SaveQuery() {
|
||||
q.mutex.Lock()
|
||||
defer q.mutex.Unlock()
|
||||
q.savedQuery = q.query
|
||||
q.savedQuery = []rune(nil)
|
||||
q.query = []rune(nil)
|
||||
}
|
||||
|
||||
func (q *Query) DeleteRange(start, end int) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue