mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 01:38:16 +00:00
vim-patch:8.1.0794: white space before " -Ntabmove" causes problems
Problem: White space before " -Ntabmove" causes problems.
Solution: Skip whitespace. (Ozaki Kiichi, closes vim/vim#3841)
82a12468bd
This commit is contained in:
@@ -4505,7 +4505,7 @@ static int get_tabpage_arg(exarg_T *eap)
|
||||
tab_number = 0;
|
||||
} else {
|
||||
tab_number = eap->line2;
|
||||
if (!unaccept_arg0 && **eap->cmdlinep == '-') {
|
||||
if (!unaccept_arg0 && *skipwhite(*eap->cmdlinep) == '-') {
|
||||
--tab_number;
|
||||
if (tab_number < unaccept_arg0) {
|
||||
eap->errmsg = e_invarg;
|
||||
|
Reference in New Issue
Block a user