Window: tolerate invisible cursor when it is the end of the buffer
This commit is contained in:
parent
23f72851e4
commit
9fcb89c8fc
|
@ -118,9 +118,12 @@ void Window::scroll_to_keep_cursor_visible_ifn()
|
||||||
}
|
}
|
||||||
column += atom.content.content().length();
|
column += atom.content.content().length();
|
||||||
}
|
}
|
||||||
|
if (cursor != buffer().end())
|
||||||
|
{
|
||||||
// the cursor should always be visible.
|
// the cursor should always be visible.
|
||||||
assert(false);
|
assert(false);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
String Window::status_line() const
|
String Window::status_line() const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user