diff options
Diffstat (limited to 'src/ring.c')
| -rw-r--r-- | src/ring.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -539,7 +539,7 @@ teco_state_edit_file_initial(teco_machine_main_t *ctx, GError **error) return TRUE; teco_int_t id; - if (!teco_expressions_pop_num_calc(&id, -1, error)) + if (!teco_expressions_pop_int_calc(&id, -1, error)) return FALSE; ctx->flags.allow_filename = TRUE; @@ -688,7 +688,7 @@ teco_state_save_file_done(teco_machine_main_t *ctx, teco_string_t str, GError ** */ teco_buffer_t *buffer = teco_ring_current; if (teco_expressions_args() > 0) { - teco_int_t id = teco_expressions_pop_num(0); + teco_int_t id = teco_expressions_pop_int(0); buffer = teco_ring_find(id); if (!buffer) { teco_error_invalidbuf_set(error, id); @@ -835,7 +835,7 @@ teco_state_ecommand_close(teco_machine_main_t *ctx, GError **error) teco_buffer_t *buffer; gboolean force; if (teco_expressions_args() > 0) { - teco_int_t id = teco_expressions_pop_num(0); + teco_int_t id = teco_expressions_pop_int(0); buffer = teco_ring_find(ABS(id)); if (!buffer) { teco_error_invalidbuf_set(error, ABS(id)); |
