mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Before, we were traversing through lines to remove in ascending order and then calling remove(n) for each. But when we removed line 10, line 11 became the *new* line 10. So when we removed line 11 we ended up skipping the old line 11. I solved this by traversing in reverse when we need to delete lines.