Skip to content
Commit 28e37d1c authored by Igor Kushnir's avatar Igor Kushnir
Browse files

Optimize a mark-restoring condition after document reload

The loop that restores marks compares the index of a temporary mark `z`
to the number of lines in the document `lines`. The check virtually
always succeeds and makes no sense. Compare the temporary mark's line
number to the number of lines instead. When the temporary mark's line
number is out of the document range, setMark() does nothing, so this
commit is only an optimization.
parent 7c81f20c
Pipeline #615776 passed with stage
in 4 minutes and 33 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment