Skip to content

Commit

Permalink
优化上下文,没有标题的时候
Browse files Browse the repository at this point in the history
  • Loading branch information
norcx committed Apr 28, 2024
1 parent f928067 commit da05d45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ abstract class AbstractFile {
let result: string = this.path
let currentContext: HeadingCache[] = []
if (!(this.file_cache.hasOwnProperty('headings'))) {
return result
return "<br>"+result+"<br>"+"<hr>"
}
for (let currentHeading of this.file_cache.headings) {
if (position < currentHeading.position.start.offset) {
Expand Down

0 comments on commit da05d45

Please sign in to comment.