Skip to content

Commit

Permalink
Merge pull request #351 from codefori/fix/ruler_on_line_2
Browse files Browse the repository at this point in the history
Fix ruler visibility on line 2
  • Loading branch information
worksofliam authored Dec 12, 2024
2 parents 8d0f210 + 16e734d commit c171e5c
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 c171e5c

Please sign in to comment.