fix(links): preserve workspace openers after lookup refusals

This commit is contained in:
Devvyn committed 2026-10-28 23:03:45 +08:00
1 parent 97d53f6621
commit fd0e52496d
7 files changed
+80 -29

No files matched your search

+2
View File
@@ -2656,6 +2656,8 @@ function terminalPathLine(buffer, row, cols, maxRows) {
if (!prev || rows + rowsOf(prev) > bound) break;
first = prev;
rows += rowsOf(prev);
const tail = /[^\s"'<>|;&]+$/.exec(first.text.trimEnd())?.[0] || '';
if (!tail.includes('/')) continue;
const candidate = extend(first);
if (candidate.parts[candidate.parts.length - 1].endRow >= base.startRow) extended = candidate;
}