This commit is contained in:
λ/dragon 2025-06-12 16:03:38 +00:00 committed by GitHub
commit faf517faaa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,7 +57,7 @@ class CopyInlineCodeViewPlugin implements PluginValue {
node.from,
node.to
);
if (shouldExclude(codeText, filters)) {
if (shouldExclude(codeText, filters) || node.to + 1 > view.state.doc.length) {
return;
}
builder.add(