mirror of
https://github.com/veops/oneterm.git
synced 2025-10-08 08:40:07 +08:00
fix(api): monitor, replay
This commit is contained in:
@@ -672,7 +672,8 @@ func (m Model) View() string {
|
||||
v += styleText(m.echoTransform(string(value[pos+1:]))) // text after cursor
|
||||
v += m.completionView(0) // suggested completion
|
||||
} else {
|
||||
if m.canAcceptSuggestion() {
|
||||
if m.canAcceptSuggestion() && len(m.matchedSuggestions) <= 1 {
|
||||
|
||||
suggestion := m.matchedSuggestions[m.currentSuggestionIndex]
|
||||
if len(value) < len(suggestion) {
|
||||
m.Cursor.TextStyle = m.CompletionStyle
|
||||
|
Reference in New Issue
Block a user