镜像自地址
https://github.com/sammy-ette/Hilbish
已同步 2025-08-10 02:52:03 +00:00
fix(readline): change input text if it doesnt match supplied prefix for completions
这个提交包含在:
父节点
c6bb8bc663
当前提交
f360671e2a
@ -73,7 +73,12 @@ func (rl *Instance) insertCandidate() {
|
||||
|
||||
// Ensure no indexing error happens with prefix
|
||||
if len(completion) >= prefix {
|
||||
rl.insert([]rune(completion[prefix:]))
|
||||
comp := completion[prefix:]
|
||||
if completion[:prefix] != rl.tcPrefix {
|
||||
rl.viDeleteByAdjust(-prefix)
|
||||
comp = completion
|
||||
}
|
||||
rl.insert([]rune(comp))
|
||||
if !cur.TrimSlash && !cur.NoSpace {
|
||||
rl.insert([]rune(" "))
|
||||
}
|
||||
|
正在加载...
x
在新工单中引用
屏蔽一个用户