<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vis-lspc/util.lua, branch main</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>support feature detection for vis ui styling API</title>
<updated>2026-09-30T11:14:23+00:00</updated>
<author>
<name>Matěj Cepl</name>
<email>mcepl@cepl.eu</email>
</author>
<published>2026-09-30T11:12:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=ff764eed4ca67cff8016d971f07de696cfbc3ff4'/>
<id>ff764eed4ca67cff8016d971f07de696cfbc3ff4</id>
<content type='text'>
In builds of vis packaged without a git tree (such as openSUSE OBS RPM
builds), vis.API defaults to 0. Checking `vis.API &gt; 3215` therefore
fails even when the new vis.ui styling API is present.

Check for the existence of `vis.ui.style_define` and `vis.ui.style_push`
directly, and accept an optional window object in util.style_define for
backward compatibility with older versions.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In builds of vis packaged without a git tree (such as openSUSE OBS RPM
builds), vis.API defaults to 0. Checking `vis.API &gt; 3215` therefore
fails even when the new vis.ui styling API is present.

Check for the existence of `vis.ui.style_define` and `vis.ui.style_push`
directly, and accept an optional window object in util.style_define for
backward compatibility with older versions.
</pre>
</div>
</content>
</entry>
<entry>
<title>implement backward compatible style handling</title>
<updated>2026-07-15T10:06:32+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2026-05-30T14:15:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=9d0f7a0b82b1983b44636259733d6d2c39497315'/>
<id>9d0f7a0b82b1983b44636259733d6d2c39497315</id>
<content type='text'>
Remove diagnostic_style_id and use vis.ui:style_push to obtain one.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove diagnostic_style_id and use vis.ui:style_push to obtain one.
</pre>
</div>
</content>
</entry>
<entry>
<title>use the correct names of the position conversion functions</title>
<updated>2026-05-30T14:18:49+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2026-05-30T14:18:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=b4da920a7ed42e83ca81047e9c5d46b28bb21991'/>
<id>b4da920a7ed42e83ca81047e9c5d46b28bb21991</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>support vis' new option get-callback</title>
<updated>2026-05-14T12:25:27+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2026-05-13T18:33:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=49c26dd03681de5e194fc8ebcabe0c7c5d8960ad'/>
<id>49c26dd03681de5e194fc8ebcabe0c7c5d8960ad</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>append numbered members when merging</title>
<updated>2025-11-30T09:20:02+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2025-03-20T18:24:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=99093835a557cd04de0c37206debdcd345801199'/>
<id>99093835a557cd04de0c37206debdcd345801199</id>
<content type='text'>
Overriding numbered members is not intuitive.
Merging {1} and {2} should return {1,2} not {2}.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Overriding numbered members is not intuitive.
Merging {1} and {2} should return {1,2} not {2}.
</pre>
</div>
</content>
</entry>
<entry>
<title>add table helper utility functions</title>
<updated>2025-11-30T09:18:47+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fischer@muhq.space</email>
</author>
<published>2025-01-26T21:22:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-lspc/commit/?id=cb27da578ca75e651c033381d9d830f1d0db6e2f'/>
<id>cb27da578ca75e651c033381d9d830f1d0db6e2f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<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>
</feed>
