prevent drawing separators on starting lines of fields #17
@@ -387,8 +387,10 @@
|
||||
}
|
||||
let range-boundaries = ()
|
||||
for r in struct.ranges.values() {
|
||||
let i = to-real-i(if config.ltr-bits {r.start} else {r.end})
|
||||
range-boundaries.push(i)
|
||||
let start-i = to-real-i(if config.ltr-bits {r.start} else {r.end})
|
||||
let end-i = to-real-i(if config.ltr-bits {r.end} else {r.start}) + 1
|
||||
range-boundaries.push(start-i)
|
||||
range-boundaries.push(end-i)
|
||||
}
|
||||
|
||||
|
rajayonin marked this conversation as resolved
Outdated
|
||||
// Draw colors
|
||||
|
||||
Reference in New Issue
Block a user
Not really useful since we're only checking if an index is in the list later on (line 431/434)
Also,
dedupdoesn't modify the array in place so the result should be reassigned to the variableWhat do you suggest we do instead?
It seems like removing duplicates is not really necessary because the only time we read from the list is to check whether it contains particular indices. I'd suggest not calling
dedupat allOk, done.