mirror of
https://github.com/Maks1mS/bubbles.git
synced 2025-01-11 22:41:03 +03:00
fix: CharLimit <= 0 should be ignored
This commit is contained in:
parent
8f65160828
commit
84eacf535a
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user