aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2022-04-15 11:15:47 +0200
committerGitHub <noreply@github.com>2022-04-15 17:15:47 +0800
commit4503cb6b642e0b1ba8157154af6a220387e607f0 (patch)
treeb2bff85b0fd4f6414bb9e6035b2573824033cc4f /src/nvim/ex_cmds.c
parent6160973f36b532b6f9ff2cd7c20958fd791f2e2a (diff)
downloadrneovim-4503cb6b642e0b1ba8157154af6a220387e607f0.tar.gz
rneovim-4503cb6b642e0b1ba8157154af6a220387e607f0.tar.bz2
rneovim-4503cb6b642e0b1ba8157154af6a220387e607f0.zip
vim-patch:8.2.4750: small pieces of dead code (#18113)
Problem: Small pieces of dead code. Solution: Remove the dead code. (Goc Dundar, closes vim/vim#10190) Rename the qftf_cb struct member to avoid confusion. https://github.com/vim/vim/commit/b836658a04ee5456deca2ee523de9efe51252da3
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 98aabe89b3..61bd9571b5 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -4328,7 +4328,7 @@ skip:
} \
kv_push(preview_lines.subresults, current_match); \
} \
- } while (0)
+ } while (0)
// Push the match to preview_lines.
PUSH_PREVIEW_LINES();
@@ -4593,9 +4593,7 @@ void ex_global(exarg_T *eap)
return;
} else {
delim = *cmd; // get the delimiter
- if (delim) {
- ++cmd; // skip delimiter if there is one
- }
+ cmd++; // skip delimiter if there is one
pat = cmd; // remember start of pattern
cmd = skip_regexp(cmd, delim, p_magic, &eap->arg);
if (cmd[0] == delim) { // end delimiter found