Window: tolerate invisible cursor when it is the end of the buffer

This commit is contained in:
Maxime Coste 2012-08-02 07:04:42 +02:00
parent 23f72851e4
commit 9fcb89c8fc

View File

@ -118,8 +118,11 @@ void Window::scroll_to_keep_cursor_visible_ifn()
}
column += atom.content.content().length();
}
if (cursor != buffer().end())
{
// the cursor should always be visible.
assert(false);
}
}
String Window::status_line() const