diff options
| author | Michiel van den Heuvel <michielvdnheuvel@gmail.com> | 2025-02-04 12:14:23 +0100 |
|---|---|---|
| committer | Michiel van den Heuvel <michielvdnheuvel@gmail.com> | 2025-02-04 12:19:10 +0100 |
| commit | 74bbb26cfbc6736794dc59de464d6a1b1dca8064 (patch) | |
| tree | 5447f937416e5ca015afefc34a092575c4c5c7da /util_test.lua | |
| parent | e184eb6c971abfcd0dc7f836f402aae6c33a8d13 (diff) | |
| download | vis-lspc-74bbb26cfbc6736794dc59de464d6a1b1dca8064.tar.gz vis-lspc-74bbb26cfbc6736794dc59de464d6a1b1dca8064.zip | |
Change vis_sel_to_pos to count lines itself
This avoids the screen scrolling when receiving diagnostics from the
server, which currently means that saving the file randomly centers the
cursor.
This is a first version, I think that an optimisation is possible where
it doesn't loop through the file for every selection, but loops once,
converting every selection passed.
Diffstat (limited to 'util_test.lua')
0 files changed, 0 insertions, 0 deletions
