Skip to content

Commit

Permalink
delete whole line with chat
Browse files Browse the repository at this point in the history
  • Loading branch information
TodePond committed Jan 25, 2025
1 parent 1f6865d commit 8dba174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8dba174

Please sign in to comment.