mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-04 07:44:01 +01:00
Without this extra code, we would just be finding the previous tag with the matching name and not consider the depth. This code sets the cursor inside the potentially correct tag, gets the nest location without updating the display and if it's not at the correct depth, do i++ so we end up with another for loop to find the tag previous to that one and so on. The only way to escape out of this is to find a tag at the right depth. Set ch before line in the object, so it's similar to the order of the endPos object.