diff options
-rw-r--r-- | engines/glk/window_text_buffer.cpp | 4 | ||||
-rw-r--r-- | engines/glk/window_text_grid.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/glk/window_text_buffer.cpp b/engines/glk/window_text_buffer.cpp index 36d8c6e298..21de0d9038 100644 --- a/engines/glk/window_text_buffer.cpp +++ b/engines/glk/window_text_buffer.cpp @@ -663,6 +663,7 @@ void TextBufferWindow::requestLineEventUni(glui32 *buf, glui32 maxlen, glui32 in int pw; + _lineRequestUni = true; gli_tts_flush(); // because '>' prompt is ugly without extra space @@ -693,9 +694,6 @@ void TextBufferWindow::requestLineEventUni(glui32 *buf, glui32 maxlen, glui32 in putTextUni(buf, initlen, _inCurs, 0); } - // WORKAROUND: Mark bottom line as dirty so caret will be drawn - _lines[0]._dirty = true; - _echoLineInput = _echoLineInputBase; if (_lineTerminatorsBase && _termCt) { diff --git a/engines/glk/window_text_grid.cpp b/engines/glk/window_text_grid.cpp index e16c9bd79a..3ee8198703 100644 --- a/engines/glk/window_text_grid.cpp +++ b/engines/glk/window_text_grid.cpp @@ -272,6 +272,8 @@ void TextGridWindow::requestLineEventUni(glui32 *buf, glui32 maxlen, glui32 init return; } + _lineRequestUni = true; + if ((int)maxlen > (_width - _curX)) maxlen = (_width - _curX); |