diff options
author | Marcus Tillmanns <marcus.tillmanns@qt.io> | 2023-05-16 13:27:29 +0200 |
---|---|---|
committer | Marcus Tillmanns <marcus.tillmanns@qt.io> | 2023-05-16 13:37:20 +0000 |
commit | 7e5ba6c99324760269392f5ca3937aa7e5fb5976 (patch) | |
tree | 908abffc8f5a92d780802f53dd7fe7d0c98d3b27 /src | |
parent | 671621d79bc9fa8542562503a12d381f054b27e8 (diff) | |
download | qt-creator-7e5ba6c99324760269392f5ca3937aa7e5fb5976.tar.gz |
Terminal: Fix CellIterator again
The updateChar() was only called when m_pos == 0. It needs to be called
unless m_state == End though.
Change-Id: I2c9a7c151420395d18f2846705d57129d7afc5f3
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/terminal/celliterator.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/terminal/celliterator.cpp b/src/plugins/terminal/celliterator.cpp index d81c4b7187..91a70f76ea 100644 --- a/src/plugins/terminal/celliterator.cpp +++ b/src/plugins/terminal/celliterator.cpp @@ -22,10 +22,12 @@ CellIterator::CellIterator(const TerminalSurface *surface, int pos) if (m_pos == 0) { m_state = State::BEGIN; - updateChar(); } else if (m_pos == m_maxpos + 1) { m_state = State::END; } + + if (m_state != State::END) + updateChar(); } CellIterator::CellIterator(const TerminalSurface *surface) |