diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-04-16 16:25:03 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-04-16 16:25:03 -0400 |
commit | d76fb30c7f8e073dd17180752dbd56dfa62511d3 (patch) | |
tree | 9bd5ad978a54e00f6539fdb7d5f5d23e2aefeac5 /main.c | |
parent | 51ac447d409bb565178ab9d78d4b5200e89f2cf4 (diff) |
command history for :shell
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |