Skip to content

Commit

Permalink
Fix ruler not showing on line 2
Browse files Browse the repository at this point in the history
Signed-off-by: worksofliam <[email protected]>
  • Loading branch information
worksofliam committed Dec 12, 2024
1 parent 8d0f210 commit 16e734d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extension/client/src/language/columnAssist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,10 @@ function updateRuler(editor = window.activeTextEditor) {
})
}
});

editor.setDecorations(notCurrentArea, decorations);

if (currentEditorLine !== lineNumber && lineNumber > 1) {
if (currentEditorLine !== lineNumber && lineNumber >= 1) {
editor.setDecorations(outlineBar, [
{
range: new Range(lineNumber-1, 0, lineNumber-1, 80),
Expand Down

0 comments on commit 16e734d

Please sign in to comment.