mirror of
https://github.com/Maks1mS/bubbles.git
synced 2025-11-28 09:31:53 +03:00
fix: CharLimit <= 0 should be ignored
This commit is contained in:
@@ -797,7 +797,7 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
|
|||||||
case key.Matches(msg, m.KeyMap.WordBackward):
|
case key.Matches(msg, m.KeyMap.WordBackward):
|
||||||
m.wordLeft()
|
m.wordLeft()
|
||||||
default:
|
default:
|
||||||
if rw.StringWidth(m.Value()) >= m.CharLimit {
|
if m.CharLimit > 0 && rw.StringWidth(m.Value()) >= m.CharLimit {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user