From 8dba1745080db2fd4c56fc7dd82f5b1c12ac7800 Mon Sep 17 00:00:00 2001 From: "Lu[ke] Wilson" Date: Sat, 25 Jan 2025 16:07:20 +0000 Subject: [PATCH] delete whole line with chat --- src/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor.js b/src/editor.js index 83418ce..e94e240 100644 --- a/src/editor.js +++ b/src/editor.js @@ -94,7 +94,7 @@ export class PastaMirror { const { head } = view.state.selection.main; const line = view.state.doc.lineAt(head); from = line.from; - to = line.to; + to = line.to + 1; } const message = view.state.sliceDoc(from, to).trim();