Mercurial > vim
comparison src/ex_docmd.c @ 15573:060cb54565c1 v8.1.0794
patch 8.1.0794: white space before " -Ntabmove" causes problems
commit https://github.com/vim/vim/commit/82a12468bd023f5cdc5d27182bedef7881514643
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 22 22:41:42 2019 +0100
patch 8.1.0794: white space before " -Ntabmove" causes problems
Problem: White space before " -Ntabmove" causes problems.
Solution: Skip whitespace. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/3841)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 22 Jan 2019 22:45:06 +0100 |
parents | 30d4a5f547c7 |
children | 3a2bf24d2655 |
comparison
equal
deleted
inserted
replaced
15572:b28776ed9fb2 | 15573:060cb54565c1 |
---|---|
7586 tab_number = 0; | 7586 tab_number = 0; |
7587 } | 7587 } |
7588 else | 7588 else |
7589 { | 7589 { |
7590 tab_number = eap->line2; | 7590 tab_number = eap->line2; |
7591 if (!unaccept_arg0 && **eap->cmdlinep == '-') | 7591 if (!unaccept_arg0 && *skipwhite(*eap->cmdlinep) == '-') |
7592 { | 7592 { |
7593 --tab_number; | 7593 --tab_number; |
7594 if (tab_number < unaccept_arg0) | 7594 if (tab_number < unaccept_arg0) |
7595 eap->errmsg = e_invarg; | 7595 eap->errmsg = e_invarg; |
7596 } | 7596 } |