aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorStephen Blott2015-01-24 07:16:37 +0000
committerStephen Blott2015-01-24 14:28:11 +0000
commitd9462e5d1e3ebb8f2fedc400b05c4c545fada142 (patch)
tree702840b0033d2fe2c30e50e61ac9910080337c9c /lib
parent0f96b6bf07c02704272a90a017ee14661dca8ce0 (diff)
downloadvimium-d9462e5d1e3ebb8f2fedc400b05c4c545fada142.tar.bz2
Visual/edit modes: more edit-mode commands.
- "dw", "3dw", "d3w" - "dc", "3dc", "d3c" - "D" - "C" Also refactor enterInsertMode. Also major refactor of interface between edit and visual modes.
Diffstat (limited to 'lib')
-rw-r--r--lib/clipboard.coffee4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/clipboard.coffee b/lib/clipboard.coffee
index 836b57e4..2b28df70 100644
--- a/lib/clipboard.coffee
+++ b/lib/clipboard.coffee
@@ -15,15 +15,13 @@ Clipboard =
document.execCommand("Copy")
document.body.removeChild(textArea)
- paste: (refocusElement = null) ->
+ paste: ->
textArea = @._createTextArea()
document.body.appendChild(textArea)
textArea.focus()
document.execCommand("Paste")
value = textArea.value
document.body.removeChild(textArea)
- # The caller wants this element refocused.
- refocusElement.focus() if refocusElement
value