mirror of
https://github.com/felixangell/phi.git
synced 2024-08-16 19:20:21 +03:00
update fuzzysearch dep to original repo rather than deleted fork
This commit is contained in:
parent
5bac7d4766
commit
8a91b542e4
@ -12,12 +12,12 @@ import (
|
||||
"time"
|
||||
"unicode"
|
||||
|
||||
"github.com/felixangell/fuzzysearch/fuzzy"
|
||||
"github.com/felixangell/phi/cfg"
|
||||
"github.com/felixangell/phi/gui"
|
||||
"github.com/felixangell/phi/lex"
|
||||
"github.com/felixangell/phi/piecetable"
|
||||
"github.com/felixangell/strife"
|
||||
"github.com/lithammer/fuzzysearch/fuzzy"
|
||||
"github.com/veandco/go-sdl2/sdl"
|
||||
)
|
||||
|
||||
|
@ -4,11 +4,11 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/felixangell/fuzzysearch/fuzzy"
|
||||
"github.com/felixangell/phi/cfg"
|
||||
"github.com/felixangell/phi/gui"
|
||||
"github.com/felixangell/phi/lex"
|
||||
"github.com/felixangell/strife"
|
||||
"github.com/lithammer/fuzzysearch/fuzzy"
|
||||
"github.com/veandco/go-sdl2/sdl"
|
||||
)
|
||||
|
||||
@ -215,7 +215,7 @@ func (b *CommandPalette) calculateCommandSuggestions() {
|
||||
suggestions := []suggestion{}
|
||||
|
||||
for _, r := range ranks {
|
||||
cmdName := commandSet[r.Index]
|
||||
cmdName := commandSet[r.OriginalIndex]
|
||||
if cmdName == "" {
|
||||
continue
|
||||
}
|
||||
@ -254,7 +254,7 @@ func (b *CommandPalette) calculateSuggestions() {
|
||||
ranks := fuzzy.RankFind(input, openFiles)
|
||||
suggestions := []suggestion{}
|
||||
for _, r := range ranks {
|
||||
pane := b.parent.buffers[r.Index]
|
||||
pane := b.parent.buffers[r.OriginalIndex]
|
||||
if pane != nil {
|
||||
sugg := suggestion{
|
||||
b,
|
||||
|
BIN
screenshot.png
BIN
screenshot.png
Binary file not shown.
Before Width: | Height: | Size: 802 KiB |
Loading…
Reference in New Issue
Block a user