mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Always combine line,column into Position
This commit is contained in:
parent
f19220473a
commit
4d7070ce3b
22 changed files with 1181 additions and 1293 deletions
|
@ -516,7 +516,7 @@ fn fmt_when<'a, 'buf>(
|
|||
let (first_pattern, rest) = patterns.split_first().unwrap();
|
||||
let is_multiline = match rest.last() {
|
||||
None => false,
|
||||
Some(last_pattern) => first_pattern.region.start_line != last_pattern.region.end_line,
|
||||
Some(last_pattern) => first_pattern.region.start().line != last_pattern.region.end().line,
|
||||
};
|
||||
|
||||
fmt_pattern(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue