aboutsummaryrefslogtreecommitdiff
path: root/util_test.lua
Commit message (Collapse)AuthorAgeFilesLines
* support feature detection for vis ui styling APIMatěj Cepl13 days1-0/+30
| | | | | | | | | | In builds of vis packaged without a git tree (such as openSUSE OBS RPM builds), vis.API defaults to 0. Checking `vis.API > 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.
* append numbered members when mergingFlorian Fischer2025-11-301-2/+7
| | | | | Overriding numbered members is not intuitive. Merging {1} and {2} should return {1,2} not {2}.
* add table helper utility functionsFlorian Fischer2025-11-301-0/+38
|
* fix the line number detection with tabsFlorian Fischer2025-06-081-0/+15
| | | | | 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.
* handle special cases in util.dirnamedetect-rootFlorian Fischer2025-01-111-0/+18