mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-16 22:10:26 +00:00
fix cycling through completion suggestions ending in non-word character (#3650)
This commit is contained in:
parent
b88300ef7f
commit
79fe4ae3e3
1 changed files with 5 additions and 4 deletions
|
|
@ -911,6 +911,11 @@ func (h *BufPane) Autocomplete() bool {
|
|||
return false
|
||||
}
|
||||
|
||||
if b.HasSuggestions {
|
||||
b.CycleAutocomplete(true)
|
||||
return true
|
||||
}
|
||||
|
||||
if h.Cursor.X == 0 {
|
||||
return false
|
||||
}
|
||||
|
|
@ -921,10 +926,6 @@ func (h *BufPane) Autocomplete() bool {
|
|||
return false
|
||||
}
|
||||
|
||||
if b.HasSuggestions {
|
||||
b.CycleAutocomplete(true)
|
||||
return true
|
||||
}
|
||||
return b.Autocomplete(buffer.BufferComplete)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue