Skip to content

Commit

Permalink
LineNumberRulerColumn consider LineSpacing for word wrapping
Browse files Browse the repository at this point in the history
The LineNumberRulerColumn should consider the text widget's LineSpacing when word wrapping is enabled.

Fixes #2668
  • Loading branch information
Christopher-Hermann authored and mickaelistria committed Jan 7, 2025
1 parent b3aa5b0 commit 36c6b93
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,7 @@ void doPaint(GC gc, ILineRange visibleLines) {

// use height of text bounding because bounds.width changes on word wrap
y+= fCachedTextWidget.getTextBounds(offsetAtLine, offsetEnd).height;
y+= fCachedTextWidget.getLineSpacing();
}
}
}
Expand Down

0 comments on commit 36c6b93

Please sign in to comment.