fix off-by-one errors in ErrorStrip

When editing short documents, I noticed inconsistencies on the ErrorStrip: the cursor's line was not lining up with marked occurences, cursor's marker was a bit off everywhere, etc.
I tracked it down to these errors, which result from the fact that the line numbering is 1-based, while the math here was not. :)