Skip to content

Commit 8283303

Browse files
committed
Fix bug not correctly wrapping when using tab-stops in some particular cases.
1 parent b4543fe commit 8283303

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/eepp/ui/doc/documentview.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ DocumentView::LineWrapInfo DocumentView::computeLineBreaks( const String::View&
107107
: hspace;
108108

109109
if ( curChar == '\t' )
110-
w = Text::tabAdvance( hspace, tabWidth, tabStops ? w : std::optional<Float>{} );
110+
w = Text::tabAdvance( hspace, tabWidth, tabStops ? xoffset : std::optional<Float>{} );
111111

112112
if ( !isMonospace && curChar != '\r' ) {
113113
w += fontStyle.Font->getKerning( prevChar, curChar, fontStyle.CharacterSize, bold,

0 commit comments

Comments
 (0)