diff options
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -546,7 +546,7 @@ main(int argc, char **argv) } g_clear_error(&error); - if (!teco_expressions_pop_num_calc(&ret, EXIT_SUCCESS, &error) || + if (!teco_expressions_pop_int_calc(&ret, EXIT_SUCCESS, &error) || !teco_ed_hook(TECO_ED_HOOK_QUIT, &error)) goto cleanup; goto cleanup; @@ -586,7 +586,7 @@ main(int argc, char **argv) if (teco_ed & TECO_ED_EXIT) { /* exit was requested using the EX command */ - if (!teco_expressions_pop_num_calc(&ret, EXIT_SUCCESS, &error) || + if (!teco_expressions_pop_int_calc(&ret, EXIT_SUCCESS, &error) || !teco_ed_hook(TECO_ED_HOOK_QUIT, &error)) goto cleanup; goto cleanup; |
