diff options
author | Josh Rahm <rahm@google.com> | 2022-08-18 14:02:13 -0600 |
---|---|---|
committer | Josh Rahm <rahm@google.com> | 2022-08-18 14:02:13 -0600 |
commit | d45440a5e5424aa867ea0ba8dae7338f60065410 (patch) | |
tree | d685b8fcadb43a74203659d8d2fb84e4bbb0805b /src/nvim/edit.c | |
parent | 234128e54154932d194f0ca3d09c86c9b756c390 (diff) | |
download | rneovim-d45440a5e5424aa867ea0ba8dae7338f60065410.tar.gz rneovim-d45440a5e5424aa867ea0ba8dae7338f60065410.tar.bz2 rneovim-d45440a5e5424aa867ea0ba8dae7338f60065410.zip |
Change a bit about how userreg work.
* The userreg function can now return a list. If a list is returned, the
yankreg will be set to kMTLineWise, and each element in the list will
become a line in the yankreg.
* Use tv_get_string to get strings from typevals.
* call tv_free on the tv sent to typval_to_yankreg to properly unref the
values.
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index 5861e4c52b..969e0af9f5 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -4082,11 +4082,13 @@ static void ins_ctrl_g(void) // Don't map the second key. This also prevents the mode message to be // deleted when ESC is hit. no_mapping++; + allow_keys++; c = plain_vgetc(); no_mapping--; allow_keys--; switch (c) { + // CTRL-G k and CTRL-G <Up>: cursor up to Insstart.col case K_UP: case Ctrl_K: |