vim-patch:9.1.1408: not easily possible to complete from register content (#34198)

Problem:  not easily possible to complete from register content
Solution: add register-completion submode using i_CTRL-X_CTRL-R
          (glepnir)

closes: vim/vim#17354

0546068aae
This commit is contained in:
glepnir
2025-05-28 17:10:00 +08:00
committed by GitHub
parent a4f318574a
commit f2373a89d7
13 changed files with 198 additions and 12 deletions

View File

@@ -796,6 +796,10 @@ static int insert_handle_key(InsertState *s)
break;
case Ctrl_R: // insert the contents of a register
if (ctrl_x_mode_register() && !ins_compl_active()) {
insert_do_complete(s);
break;
}
ins_reg();
auto_format(false, true);
s->inserted_space = false;