File patch-r897853.diff of Package kdelibs4
Subject: ensureCursorColumnValid should check if the cursor is *in*valid...
From: wstephenson@suse.de
Bug:
Patch-upstream: 897853
--- kate/view/kateview.cpp (revision 897852)
+++ kate/view/kateview.cpp (revision 897853)
@@ -1333,7 +1333,7 @@ void KateView::ensureCursorColumnValid()
// - in block selection mode or if wrap cursor is off, the colum is arbitrary
// - otherwise: it's bounded by the line length
if (!blockSelectionMode() && wrapCursor()
- && (c.isValid() || c.column() > m_doc->lineLength(c.line())))
+ && (!c.isValid() || c.column() > m_doc->lineLength(c.line())))
{
c.setColumn(m_doc->kateTextLine(cursorPosition().line())->length());
setCursorPosition(c);
Index: kate/view/kateview.cpp
===================================================================