patch 9.1.1408: not easily possible to complete from register content

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

closes: #17354

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
glepnir
2025-05-26 18:23:27 +02:00
committed by Christian Brabandt
parent 69c3493adc
commit 0546068aae
13 changed files with 218 additions and 13 deletions

View File

@ -929,6 +929,8 @@ doESCkey:
break;
case Ctrl_R: // insert the contents of a register
if (ctrl_x_mode_register() && !ins_compl_active())
goto docomplete;
ins_reg();
auto_format(FALSE, TRUE);
inserted_space = FALSE;