refactor(editview): use xrl's linecache, remove gxi-linecache
See https://github.com/xi-frontend/xrl/issues/23
Stuff that's left to do:
-
Fix linecache when opening an existing document -
fix styles -
It appears that sometimes gxi gets what line is which wrong with the new linecache. This causes weird artifacts, where a line appears at line_pos -1 (e.g. line 52 is displayed at 51). Upon moving the cursor over this line the line (and only that one line) is displayed properly again. I guess I'll have to redraw more aggressively in the EditView.