I wish this was shorter, but oh well
This commit is contained in:
Fabian Boehm 2024-01-10 20:59:45 +01:00
parent 2e14c32c5e
commit 40feed56cf

View file

@ -647,7 +647,9 @@ impl<'source, 'ast> PrettyPrinterState<'source, 'ast> {
// # something
// cmd2
// Treat it as gap text.
let Some(range) = node.range() else { return; };
let Some(range) = node.range() else {
return;
};
if range.length() == 0 {
return;
}