Skip to content
Myr

Fix #185 - Terminate on RuneError

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 3a9d1df · Browse files · 2 files+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−0 removed

  • other:+4 added−0 removed

2 files+4 added−0 removed

modified:src/curses/curses.go+3 added
418 unmodified lines
419 if _buf[0] <= CtrlZ {420 return Event{int(_buf[0]), 0, nil}421 }422 r, rsz := utf8.DecodeRune(_buf)423 if r == utf8.RuneError {424 return Event{ESC, 0, nil}425 }426 sz = rsz427 return Event{Rune, r, nil}428}429
43 unmodified lines
modified:CHANGELOG.md+1 added