Documents: untouched cells keep their bytes; open cells take padding presses
CI / platforms (windows-latest) (push) Failing after 9s
CI / site (push) Successful in 22s
CI / crate (push) Failing after 11m35s
CI / platforms (ubuntu-24.04) (push) Canceled after 0s

A trailing backslash doubles only before a closing pipe. A write at a
block's start keeps the block, so Tab leaves a first cell without outer
pipes. Padding of the open cell moves its caret to the end, and a right
press there points at the end.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-15 01:39:17 -04:00
1 parent 6a3f3486fd
commit 2b6bd1d369
9 files changed
+171 -50

No files matched your search

+1 -1
View File
@@ -246,7 +246,7 @@ impl MarkdownDocument {
let written = match open.append {
true if typed.is_empty() => String::new(),
true => format!("{}{typed}", joint(text)),
false if open.cell.is_some() => cells::kept(typed),
false if open.cell.is_some() => cells::kept(typed, cells::closed(text, open.range.end)),
false => typed.to_string(),
};
[&text[..open.range.start], &written, &text[open.range.end..]].concat()