diff options
author | Oliver Kiddle <opk@zsh.org> | 2014-11-17 00:41:12 +0100 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2014-11-17 00:49:31 +0100 |
commit | 15fc2cd4f09a63ab9aa15f61e9724ffbd8ab8a89 (patch) | |
tree | 1041bded696d65463ef61917fb283a7526cab41a /Src/Zle/zle_vi.c | |
parent | 1e934556f7a91cc15e78272763dab05ea16b6d78 (diff) | |
download | zsh-15fc2cd4f09a63ab9aa15f61e9724ffbd8ab8a89.tar.gz zsh-15fc2cd4f09a63ab9aa15f61e9724ffbd8ab8a89.tar.xz zsh-15fc2cd4f09a63ab9aa15f61e9724ffbd8ab8a89.zip |
33632: use viopp and visual local keymaps if they exist
Diffstat (limited to 'Src/Zle/zle_vi.c')
-rw-r--r-- | Src/Zle/zle_vi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Src/Zle/zle_vi.c b/Src/Zle/zle_vi.c index 68b1c9211..a7e8a70cc 100644 --- a/Src/Zle/zle_vi.c +++ b/Src/Zle/zle_vi.c @@ -167,6 +167,10 @@ getvirange(int wf) virangeflag = 1; wordflag = wf; + /* use operator-pending keymap if one exists */ + Keymap km = openkeymap("viopp"); + if (km) + selectlocalmap(km); /* Now we need to execute the movement command, to see where it * * actually goes. virangeflag here indicates to the movement * * function that it should place the cursor at the end of the * @@ -224,6 +228,7 @@ getvirange(int wf) if (virangeflag == -1) INCPOS(pos); virangeflag = 0; + selectlocalmap(NULL); /* Get the range the right way round. zlecs is placed at the * * start of the range, and pos (the return value of this * |