aboutsummaryrefslogtreecommitdiff
path: root/lspc.lua
diff options
context:
space:
mode:
authorMichiel van den Heuvel <michielvdnheuvel@gmail.com>2025-02-04 12:14:23 +0100
committerMichiel van den Heuvel <michielvdnheuvel@gmail.com>2025-02-04 12:19:10 +0100
commit74bbb26cfbc6736794dc59de464d6a1b1dca8064 (patch)
tree5447f937416e5ca015afefc34a092575c4c5c7da /lspc.lua
parente184eb6c971abfcd0dc7f836f402aae6c33a8d13 (diff)
downloadvis-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 'lspc.lua')
0 files changed, 0 insertions, 0 deletions