fix(ops.c): remove duplicate u_save_cursor()

This commit is contained in:
zeertzjq 2024-01-14 08:47:57 +08:00 committed by GitHub
parent 2bdd8fad4c
commit 92c59c39c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}