aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r--src/nvim/getchar.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index 57b0cf9a31..972ac9a0ec 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -3724,10 +3724,6 @@ eval_map_expr (
vim_unescape_csi(expr);
save_cmd = save_cmdline_alloc();
- if (save_cmd == NULL) {
- free(expr);
- return NULL;
- }
/* Forbid changing text or using ":normal" to avoid most of the bad side
* effects. Also restore the cursor position. */