comparison src/ex_cmds2.c @ 16515:6e87a69b8e0c v8.1.1261

patch 8.1.1261: no error for quickfix commands with negative range commit https://github.com/vim/vim/commit/25190db225d63e185e77e043e694ef455b3cf304 Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 4 15:05:28 2019 +0200 patch 8.1.1261: no error for quickfix commands with negative range Problem: No error for quickfix commands with negative range. Solution: Add ADDR_UNSIGNED and use it for quickfix commands. Make assert_fails() show the command if the error doesn't match.
author Bram Moolenaar <Bram@vim.org>
date Sat, 04 May 2019 15:15:05 +0200
parents 1dcbaa780b8e
children 6f52e82d9d4e
comparison
equal deleted inserted replaced
16514:23780193686f 16515:6e87a69b8e0c
2130 } 2130 }
2131 #ifdef FEAT_QUICKFIX 2131 #ifdef FEAT_QUICKFIX
2132 else if (eap->cmdidx == CMD_cdo || eap->cmdidx == CMD_ldo 2132 else if (eap->cmdidx == CMD_cdo || eap->cmdidx == CMD_ldo
2133 || eap->cmdidx == CMD_cfdo || eap->cmdidx == CMD_lfdo) 2133 || eap->cmdidx == CMD_cfdo || eap->cmdidx == CMD_lfdo)
2134 { 2134 {
2135 qf_size = qf_get_size(eap); 2135 qf_size = qf_get_valid_size(eap);
2136 if (qf_size <= 0 || eap->line1 > qf_size) 2136 if (qf_size <= 0 || eap->line1 > qf_size)
2137 buf = NULL; 2137 buf = NULL;
2138 else 2138 else
2139 { 2139 {
2140 ex_cc(eap); 2140 ex_cc(eap);