Skip to content

Commit ff085d3

Browse files
committed
1 parent fc971b1 commit ff085d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/editor/browser/viewParts/viewCursors/viewCursor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export class ViewCursor {
138138
width = dom.computeScreenAwareSize(1);
139139
}
140140
let left = visibleRange.left;
141-
if (width >= 2) {
141+
if (width >= 2 && left >= 1) {
142142
// try to center cursor
143143
left -= 1;
144144
}

0 commit comments

Comments
 (0)