<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vis-lspc/util.lua, branch nav</title>
<subtitle>language server protocol client for the vis editor</subtitle>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/'/>
<entry>
<title>add special case for the gopls empty file range</title>
<updated>2025-07-03T03:06:50+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2025-07-03T03:06:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=05f2d8e253c3523e63ea08018f8bb9d23f6659b5'/>
<id>05f2d8e253c3523e63ea08018f8bb9d23f6659b5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix conversion of last byte selections</title>
<updated>2025-07-02T17:39:30+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2025-07-02T04:06:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=bee42bc87a249bddcd7d13a7a7c257f0c7f78072'/>
<id>bee42bc87a249bddcd7d13a7a7c257f0c7f78072</id>
<content type='text'>
If a language server sends a selection including the last byte, the line number will be one greater than the actual number of lines.
Those selections are not converted by our algorithm iterating all lines.
Add a special case to still convert them.

Fixes: f5c2043
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If a language server sends a selection including the last byte, the line number will be one greater than the actual number of lines.
Those selections are not converted by our algorithm iterating all lines.
Add a special case to still convert them.

Fixes: f5c2043
</pre>
</div>
</content>
</entry>
<entry>
<title>fix the line number detection with tabs</title>
<updated>2025-06-08T20:35:07+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2025-06-08T16:09:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=59ce465f6d51f1d3b8ae18a3346264006e99aab5'/>
<id>59ce465f6d51f1d3b8ae18a3346264006e99aab5</id>
<content type='text'>
If a line includes tabs add the visually added space for each tab stop
to the line length in order to detect a wrapped line.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If a line includes tabs add the visually added space for each tab stop
to the line length in order to detect a wrapped line.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'sel_to_pos_v2' into 'main'</title>
<updated>2025-05-15T03:49:01+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>gitlab@muhq.space</email>
</author>
<published>2025-05-15T03:49:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=90d9b7f7fbe57426fcd4c90dd196ebdae174ee26'/>
<id>90d9b7f7fbe57426fcd4c90dd196ebdae174ee26</id>
<content type='text'>
Change vis_sel_to_pos to vis internals or to count lines itself

Closes #38

See merge request muhq/vis-lspc!58</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change vis_sel_to_pos to vis internals or to count lines itself

Closes #38

See merge request muhq/vis-lspc!58</pre>
</div>
</content>
</entry>
<entry>
<title>fix vis:pipe buffer support detection</title>
<updated>2025-04-10T16:09:29+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2025-04-10T16:09:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=133b1aab256ad7ba7a580723abc68ea896c220b5'/>
<id>133b1aab256ad7ba7a580723abc68ea896c220b5</id>
<content type='text'>
Check a vis:pipe function call like we would call it in vis_pipe.
Omitting the fullscreen parameter causes the pcall to succeed, although vis does not support
using a string as data source.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Check a vis:pipe function call like we would call it in vis_pipe.
Omitting the fullscreen parameter causes the pcall to succeed, although vis does not support
using a string as data source.
</pre>
</div>
</content>
</entry>
<entry>
<title>calculate the positions for multiple selections at once</title>
<updated>2025-02-14T15:23:13+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2025-02-05T05:59:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=f5c20434eaeb3e22cc50864d08878adef39fd233'/>
<id>f5c20434eaeb3e22cc50864d08878adef39fd233</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>move file location converters functions into util module</title>
<updated>2025-02-14T13:16:00+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2025-02-12T16:26:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=71e6e1787a8caaceace53f0fe658da7a8f6debec'/>
<id>71e6e1787a8caaceace53f0fe658da7a8f6debec</id>
<content type='text'>
Use the the internal vis logic as fast path if available.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use the the internal vis logic as fast path if available.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix find_upwards</title>
<updated>2025-02-02T11:59:05+00:00</updated>
<author>
<name>Michiel van den Heuvel</name>
<email>michielvdnheuvel@gmail.com</email>
</author>
<published>2025-02-02T11:59:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=181daa0dd954d2d30b54b1c1b78d9a6cbf7868e9'/>
<id>181daa0dd954d2d30b54b1c1b78d9a6cbf7868e9</id>
<content type='text'>
- Use `util.vis_pipe` instead of `vis:pipe` as this does not work on the
  current release of vis.
- Quote the path to the find-upwards script. It resides in
  `~/Library/Application Support` on my macOS setup, and while not very
  common, paths in other users' configurations might have the same
  issue.
- At least during testing, `out` was nil in some cases. `find_upwards`
  checks it now.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Use `util.vis_pipe` instead of `vis:pipe` as this does not work on the
  current release of vis.
- Quote the path to the find-upwards script. It resides in
  `~/Library/Application Support` on my macOS setup, and while not very
  common, paths in other users' configurations might have the same
  issue.
- At least during testing, `out` was nil in some cases. `find_upwards`
  checks it now.
</pre>
</div>
</content>
</entry>
<entry>
<title>handle special cases in util.dirname</title>
<updated>2025-01-11T14:37:12+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2025-01-11T14:37:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=bae8a0a45393518bbf7914b10bf36139a977cda6'/>
<id>bae8a0a45393518bbf7914b10bf36139a977cda6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>make universal root detection opt-in</title>
<updated>2025-01-11T14:11:16+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2025-01-11T14:11:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=29afc301ea05bc907444b698c91b141c26167baa'/>
<id>29afc301ea05bc907444b698c91b141c26167baa</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
