@@ -457,13 +457,16 @@ func (m *model) View() tea.View {
457457 }
458458 }
459459
460- overflow , scopeColor := getInputColors (m , m .scopeInput .CharLimit , m .scopeInput .Value ())
460+ overflow , _ := getInputColors (m , m .scopeInput .CharLimit , m .scopeInput .Value ())
461+ tiStyles := textinput .DefaultStyles (true )
461462 if overflow {
462- tiStyles := textinput .DefaultStyles (true )
463- tiStyles .Focused .Prompt = lipgloss .NewStyle ().Foreground (scopeColor )
464- tiStyles .Blurred .Prompt = lipgloss .NewStyle ().Foreground (scopeColor )
465- (& m .scopeInput ).SetStyles (tiStyles )
463+ tiStyles .Focused .Prompt = lipgloss .NewStyle ().Foreground (overflowCharColor )
464+ tiStyles .Blurred .Prompt = lipgloss .NewStyle ().Foreground (overflowCharColor )
465+ } else {
466+ tiStyles .Focused .Prompt = lipgloss .NewStyle ().Foreground (selectedItemColors )
467+ tiStyles .Blurred .Prompt = lipgloss .NewStyle ().Foreground (selectedItemColors )
466468 }
469+ (& m .scopeInput ).SetStyles (tiStyles )
467470
468471 return tea .NewView (titleStyle .Render (fmt .Sprintf (
469472 "%s%s (Enter to skip / Esc to cancel) %s\n %s" ,
@@ -484,13 +487,16 @@ func (m *model) View() tea.View {
484487 }
485488 }
486489
487- overflow , msgColor := getInputColors (m , m .msgInput .CharLimit , m .msgInput .Value ())
490+ overflow , _ := getInputColors (m , m .msgInput .CharLimit , m .msgInput .Value ())
491+ tiStyles := textinput .DefaultStyles (true )
488492 if overflow {
489- tiStyles := textinput .DefaultStyles (true )
490- tiStyles .Focused .Prompt = lipgloss .NewStyle ().Foreground (msgColor )
491- tiStyles .Blurred .Prompt = lipgloss .NewStyle ().Foreground (msgColor )
492- (& m .msgInput ).SetStyles (tiStyles )
493+ tiStyles .Focused .Prompt = lipgloss .NewStyle ().Foreground (overflowCharColor )
494+ tiStyles .Blurred .Prompt = lipgloss .NewStyle ().Foreground (overflowCharColor )
495+ } else {
496+ tiStyles .Focused .Prompt = lipgloss .NewStyle ().Foreground (selectedItemColors )
497+ tiStyles .Blurred .Prompt = lipgloss .NewStyle ().Foreground (selectedItemColors )
493498 }
499+ (& m .msgInput ).SetStyles (tiStyles )
494500
495501 return tea .NewView (titleStyle .Render (fmt .Sprintf (
496502 "%s%s (Esc to cancel) %s\n %s" ,
0 commit comments