summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-04-16 16:25:03 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2021-04-16 16:25:03 -0400
commitd76fb30c7f8e073dd17180752dbd56dfa62511d3 (patch)
tree9bd5ad978a54e00f6539fdb7d5f5d23e2aefeac5 /main.c
parent51ac447d409bb565178ab9d78d4b5200e89f2cf4 (diff)
command history for :shell
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.c b/main.c
index ff118cc..3a1b686 100644
--- a/main.c
+++ b/main.c
@@ -951,6 +951,11 @@ int main(int argc, char **argv) {
}
session_write(ted);
+
+ arr_foreach_ptr(ted->shell_history, char *, cmd) {
+ free(*cmd);
+ }
+ arr_free(ted->shell_history);
SDL_FreeCursor(ted->cursor_arrow);
SDL_FreeCursor(ted->cursor_ibeam);