From 92c59c39c3d98d313071f9761c448e8acfd00118 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 14 Jan 2024 08:47:57 +0800 Subject: [PATCH] fix(ops.c): remove duplicate u_save_cursor() --- src/nvim/ops.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 7c6e63a2bf..2819d98208 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -1286,7 +1286,6 @@ int insert_reg(int regname, bool literally_arg) Direction dir = BACKWARD; if ((State & REPLACE_FLAG) != 0) { pos_T curpos; - u_save_cursor(); if (u_save_cursor() == FAIL) { return FAIL; }