Skip to content

Commit e31c639

Browse files
committed
fix #432 (support first line of file as well)
1 parent c8b1bfa commit e31c639

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/client/typeFormatters/codeBlockFormatProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class CodeBlockFormatProvider {
1717
// while x:
1818

1919
// We need to find a block statement that is less than or equal to this statement block (but not greater)
20-
for (let lineNumber = position.line - 1; lineNumber > 0; lineNumber--) {
20+
for (let lineNumber = position.line - 1; lineNumber >= 0; lineNumber--) {
2121
const prevLine = document.lineAt(lineNumber);
2222
const prevLineText = prevLine.text;
2323

0 commit comments

Comments
 (0)