]> git.gir.st - VimFx.git/commit
Fix selection clipboard handling
authorSimon Lydell <simon.lydell@gmail.com>
Sat, 1 Oct 2016 08:07:50 +0000 (10:07 +0200)
committerSimon Lydell <simon.lydell@gmail.com>
Sat, 1 Oct 2016 08:15:23 +0000 (10:15 +0200)
commit86e29f0c03fe98eaabb996212b38250c414de375
treec3d9a9e766657a2059d8e8052118d421afc7b893
parentabedb68def24c43608417ffdf0ea3c97cdddc042
Fix selection clipboard handling

This is only for systems with a "selection clipboard."

1. Copy text using one of the following methods:

   - `yv<hint>`
   - `av<hint>y`
   - `yf<hint>` on a contenteditable element

2. Use the `p` or `P` command.

Unlike other commands that copy text to the clipboard, such as `yy` and
`v<hint>wy`, the above methods previously didn't affect the selection
clipboard. This caused the `p` and `P` commands to operate on some other
text than expected.

This commit makes sure that all commands that copy text to the clipboard
also affect the selection clipboard (in a somewhat hacky, but working,
way).

Fixes #818.
extension/lib/commands-frame.coffee
Imprint / Impressum