fix: immediate exprs

This commit is contained in:
Jonathan Kelley committed 2023-01-16 16:36:50 -08:00
1 parent 1737c55575
commit b6e4db1f2f
4 files changed
+14 -8

No files matched your search

+2 -5
View File
@@ -16,11 +16,8 @@ impl Writer<'_> {
// if the expr is on one line, just write it directly
if start.line == end.line {
write!(
self.out,
"{}",
&self.src[start.line - 1][start.column - 1..end.column].trim()
)?;
let row = &self.src[start.line - 1][start.column..end.column].trim();
write!(self.out, "{}", row)?;
return Ok(());
}