gitui/src
xvchris 06a3f660b2
fix: guard rename/update_url actions against empty remote list (#2870)
* fix: guard rename/update_url actions against empty remote list

The rename_remote() and update_remote_url() event handlers in
RemoteListPopup did not check valid_selection() before indexing
into self.remote_names, causing a panic (index out of bounds)
when no remotes are configured.

The delete_remote() handler already had this guard. This commit
adds the same valid_selection() check to the other two handlers
for consistency.

Fixes #2868
Fixes #2869

* chore: add changelog entry and sort Cargo.toml dependencies

* revert: restore original Cargo.toml formatting
2026-03-19 22:51:09 +00:00
..
components Rust msrv bump to 1.88 (#2879) 2026-03-19 18:33:52 +00:00
keys feat(cli): add the ability to specify a custom keybinding/symbols file via the cli (#2731) 2025-12-01 13:19:33 -03:00
popups fix: guard rename/update_url actions against empty remote list (#2870) 2026-03-19 22:51:09 +00:00
tabs Rust msrv bump to 1.88 (#2879) 2026-03-19 18:33:52 +00:00
ui Rust msrv bump to 1.88 (#2879) 2026-03-19 18:33:52 +00:00
app.rs Rust msrv bump to 1.88 (#2879) 2026-03-19 18:33:52 +00:00
args.rs feat(cli): add the ability to specify a custom keybinding/symbols file via the cli (#2731) 2025-12-01 13:19:33 -03:00
bug_report.rs cargo fmt: use hardtabs 2021-08-17 14:24:25 +02:00
clipboard.rs cleanup format strings (#2765) 2025-10-29 13:58:27 +01:00
cmdbar.rs Rust msrv bump to 1.88 (#2879) 2026-03-19 18:33:52 +00:00
input.rs Fix clippy issues on nightly (#2852) 2026-01-25 16:20:23 -05:00
main.rs Revert "Add snapshot test using insta (#2411)" 2025-12-08 13:44:18 -05:00
notify_mutex.rs Fix typos (#2740) 2025-10-28 16:35:05 +01:00
options.rs Rust msrv bump to 1.88 (#2879) 2026-03-19 18:33:52 +00:00
popup_stack.rs generic popup stacking solution (#1124) 2022-02-06 22:13:05 +01:00
queue.rs Support choosing checkout branch method when status is not empty (#2494) 2025-11-28 18:36:40 -03:00
spinner.rs Rust msrv bump to 1.88 (#2879) 2026-03-19 18:33:52 +00:00
string_utils.rs Allow to scroll diffs horizontally (#1327) 2023-01-08 12:47:37 +01:00
strings.rs Support choosing checkout branch method when status is not empty (#2494) 2025-11-28 18:36:40 -03:00
watcher.rs cleanup format strings (#2765) 2025-10-29 13:58:27 +01:00