summaryrefslogtreecommitdiffstats
path: root/scribus/pageitem_textframe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scribus/pageitem_textframe.cpp')
-rw-r--r--scribus/pageitem_textframe.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scribus/pageitem_textframe.cpp b/scribus/pageitem_textframe.cpp
index 26d780a..5684d5d 100644
--- a/scribus/pageitem_textframe.cpp
+++ b/scribus/pageitem_textframe.cpp
@@ -3100,7 +3100,7 @@ void PageItem_TextFrame::handleModeEditKey(QKeyEvent *k, bool& keyRepeat)
case Qt::Key_End:
// go to end of line
len = lastInFrame();
- if ( itemText.cursorPosition() >= len )
+ if ( itemText.cursorPosition() >= (len + 1) )
break; // at end of frame
if ( (buttonModifiers & Qt::ControlModifier) == 0 )
{