diff --git a/buff/buffer.go b/buff/buffer.go index 6dd71f9..e22609f 100644 --- a/buff/buffer.go +++ b/buff/buffer.go @@ -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" ) diff --git a/buff/palette.go b/buff/palette.go index 09afddc..0ca5df7 100644 --- a/buff/palette.go +++ b/buff/palette.go @@ -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, diff --git a/screenshot.png b/screenshot.png deleted file mode 100644 index fdf2e9b..0000000 Binary files a/screenshot.png and /dev/null differ