tangled
alpha
login
or
join now
brookjeynes.dev
/
jido
地圖 (Jido) is a lightweight Unix TUI file explorer designed for speed and simplicity.
5
fork
atom
overview
issues
pulls
pipelines
fix: off by one when traversing command history.
brookjeynes.dev
9 months ago
e7618e84
7296cd1a
options
unified
split
Changed files
+1
-1
src
commands.zig
+1
-1
src/commands.zig
···
34
34
}
35
35
36
36
pub fn previous(self: *CommandHistory) ?[]const u8 {
37
37
-
if (self.selected == self.len) return null;
37
37
+
if (self.selected + 1 == self.len) return null;
38
38
self.selected += 1;
39
39
return self.history[self.selected];
40
40
}