diff options
| author | WormHeamer | 2026-01-02 05:46:24 -0500 |
|---|---|---|
| committer | WormHeamer | 2026-01-02 05:46:24 -0500 |
| commit | fb1a2bff627b64f3a5386049d8314bc225432b55 (patch) | |
| tree | 31753500122e7065f496cb28a06c4ac71bfe402f | |
| parent | 436dfa22cc02da8727b4958ed3c9707e9bab2abc (diff) | |
_might_ have fixed a bug in txt_hist_push()?
| -rw-r--r-- | txt.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -277,7 +277,8 @@ void txt_hist_push(Txt *t, TxtLoc cur) { return; } if (t->hist.i + 1 < t->hist.n) t->hist.n = t->hist.i + 1; - if (t->hist.i + 1 == TXT_HIST_MAX) { + if (t->hist.n == TXT_HIST_MAX) { + /* TODO: this is maybe still buggy? */ free(t->hist.v[0].v); MOVE(&t->hist.v[0], &t->hist.v[1], TXT_HIST_MAX - 1); t->hist.i--; |
