Commit Graph
6 Commits
Author SHA1 Message Date
matcxzandMatheus C. 55de3bc26c fix: prevent underflow when session list is empty (#1060)
## What are the changes about?
Fixes an integer underflow in `min_session_index`, which was computed by subtracting 1 from the session list length without checking for zero. Caused a panic (Debug/ReleaseSafe) or wraparound (ReleaseFast) on installs with no available sessions.

## What existing issue(s) does this resolve?
N/A

## Pre-requisites
- [x] I have tested & confirmed the changes work locally
- [x] I have read and fully adhere to the rules set in the contributing guidelines found in `CONTRIBUTING.md`

Co-authored-by: Matheus C. <245040149+matheusc457@users.noreply.github.com>
Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/1060
Reviewed-by: AnErrupTion <anerruption+codeberg@disroot.org>
2026-09-30 17:19:38 +02:00
AnErrupTion aa00f7c8c7 Replace ArrayListUnmanaged with ArrayList
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2026-06-15 16:53:24 +02:00
AnErrupTion 4c066ce564 Handle termbox2 errors
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2026-05-17 13:26:46 +02:00
AnErrupTion 5edf5251f6 Update to Zig 0.16.0 (#962)
Signed-off-by: AnErrupTion <anerruption@disroot.org>

## What are the changes about?

Ports the code base to Zig 0.16.0.

## What existing issue does this resolve?

N/A

## Pre-requisites

- [x] I have tested & confirmed the changes work locally
- [x] I have run `zig fmt` throughout my changes

Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/962
2026-04-25 17:37:34 +02:00
AnErrupTion 9c50297059 Fix insert mode hack + fix bugs
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2026-03-17 23:58:06 +01:00
AnErrupTion 64539f4342 Split UI code into ly-ui library
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2026-03-17 21:44:33 +01:00