fix infinite loop drawing an empty buffer
This commit is contained in:
1 parent
a2b2156016
commit
3d57b03af7
1 file changed
+1
-1
@@ -13,7 +13,7 @@ bool Buffer::Cursor::is_start_of_line()
|
|||||||
|
|
||||||
bool Buffer::Cursor::is_end_of_line(bool allow_eol)
|
bool Buffer::Cursor::is_end_of_line(bool allow_eol)
|
||||||
{
|
{
|
||||||
if (*m_iterator == '\n')
|
if ((*m_iterator == '\n') || (!m_iterator.valid()))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user