diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-09-13 18:51:13 -0700 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-09-13 19:29:25 -0700 |
commit | 6aae0e7c943267d2109ae20ec5086791c3b94a5e (patch) | |
tree | b0a8ec8985c5bdfb1882ee847ff64b42c98d3e0a /src/nvim/window.c | |
parent | 3344cffe7bf77c984550c01f9405f4d757150d8a (diff) | |
download | rneovim-6aae0e7c943267d2109ae20ec5086791c3b94a5e.tar.gz rneovim-6aae0e7c943267d2109ae20ec5086791c3b94a5e.tar.bz2 rneovim-6aae0e7c943267d2109ae20ec5086791c3b94a5e.zip |
lint
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r-- | src/nvim/window.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c index 3308abc395..1e6de73549 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -5974,15 +5974,17 @@ file_name_in_line ( if (file_lnum != NULL) { char_u *p; - /* Get the number after the file name and a separator character */ + // Get the number after the file name and a separator character. p = ptr + len; p = skipwhite(p); if (*p != NUL) { - if (!isdigit(*p)) - ++p; /* skip the separator */ + if (!isdigit(*p)) { + p++; // skip the separator + } p = skipwhite(p); - if (isdigit(*p)) + if (isdigit(*p)) { *file_lnum = getdigits_long(&p, false, 0); + } } } |