aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r--src/nvim/window.c10
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);
+ }
}
}