summaryrefslogtreecommitdiff
path: root/app.go
diff options
context:
space:
mode:
Diffstat (limited to 'app.go')
-rw-r--r--app.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/app.go b/app.go
index bd7816e..a27db0f 100644
--- a/app.go
+++ b/app.go
@@ -377,8 +377,8 @@ func (app *App) completions(cursorIdx int, text []rune) []ui.Completion {
}
}
start++
- word := string(text[start:cursorIdx])
- wordCf := app.s.Casemap(word)
+ word := text[start:cursorIdx]
+ wordCf := app.s.Casemap(string(word))
for _, name := range app.s.Names(app.win.CurrentBuffer()) {
if strings.HasPrefix(app.s.Casemap(name.Name.Name), wordCf) {
nickComp := []rune(name.Name.Name)