mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-16 01:43:21 +00:00
Merge remote-tracking branch 'origin/master' into v2-exp
This commit is contained in:
@@ -668,7 +668,7 @@ 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.focus && m.canAcceptSuggestion() {
|
||||
suggestion := m.matchedSuggestions[m.currentSuggestionIndex]
|
||||
if len(value) < len(suggestion) {
|
||||
m.virtualCursor.TextStyle = styles.Suggestion
|
||||
|
||||
Reference in New Issue
Block a user