mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 23:38:17 +00:00
vim-patch:7.4.782
Problem: Still a few problems with CTRL-A and CTRL-X in Visual mode.
Solution: Fix the reported problems. (Christian Brabandt)
5d1bc78a2b
This commit is contained in:
@@ -4786,7 +4786,7 @@ int get_list_range(char_u **str, int *num1, int *num2)
|
||||
|
||||
*str = skipwhite(*str);
|
||||
if (**str == '-' || ascii_isdigit(**str)) { // parse "from" part of range
|
||||
vim_str2nr(*str, NULL, &len, false, false, false, &num, NULL);
|
||||
vim_str2nr(*str, NULL, &len, false, false, false, &num, NULL, 0);
|
||||
*str += len;
|
||||
*num1 = (int)num;
|
||||
first = true;
|
||||
@@ -4794,7 +4794,7 @@ int get_list_range(char_u **str, int *num1, int *num2)
|
||||
*str = skipwhite(*str);
|
||||
if (**str == ',') { // parse "to" part of range
|
||||
*str = skipwhite(*str + 1);
|
||||
vim_str2nr(*str, NULL, &len, false, false, false, &num, NULL);
|
||||
vim_str2nr(*str, NULL, &len, false, false, false, &num, NULL, 0);
|
||||
if (len > 0) {
|
||||
*num2 = (int)num;
|
||||
*str = skipwhite(*str + len);
|
||||
|
Reference in New Issue
Block a user