提交 d64b1b56 编写于 作者: M meganrogge

revert change to conditional for on header line

上级 1839813f
......@@ -76,7 +76,7 @@ export default class MarkdownSmartSelect implements vscode.SelectionRangeProvide
for (const header of headers) {
if (parentRange) {
if (parentRange.range.contains(header.location.range)) {
if (headerInfo.headerOnThisLine) {
if (headerInfo.headerOnThisLine && index === headers.length - 1) {
currentRange = new vscode.SelectionRange(header.location.range, parentRange);
} else {
currentRange = createHeaderRange(header, parentRange);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册