Skip to content

Commit

Permalink
fix smart pos1 not working on first line
Browse files Browse the repository at this point in the history
  • Loading branch information
sunderme committed Oct 9, 2023
1 parent cc701ce commit ee47f2f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/qcodeedit/lib/document/qdocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4937,9 +4937,6 @@ bool QDocumentCursorHandle::movePosition(int count, int op, const QDocumentCurso
case QDocumentCursor::StartOfLineText :
// jump in front of first charatcter in line
// if already there or only spaces before, jump to start of line
if ( atStart() )
return false;

if ( m & QDocumentCursor::ThroughWrap && m_doc->line(line).cursorToDocumentOffset(offset).y()==m_doc->line(line).cursorToDocumentOffset(offset-1).y() && m_doc->line(line).cursorToDocumentOffset(offset).y()>0 ){
QPointF p = documentPosition();
p.rx() = 0;
Expand Down

0 comments on commit ee47f2f

Please sign in to comment.