diff options
| author | Stephen Blott | 2015-01-29 06:31:59 +0000 |
|---|---|---|
| committer | Stephen Blott | 2015-01-29 06:33:06 +0000 |
| commit | 6edfb1f7b830652ca715fb16b999afc2efc184a9 (patch) | |
| tree | e8f08542b1248667aaf14c7aab2a2d16fc1ddcfb | |
| parent | f2343ebf99cda983b038d485ee1cb01a8d5f265b (diff) | |
| download | vimium-6edfb1f7b830652ca715fb16b999afc2efc184a9.tar.bz2 | |
Visual/edit modes: fix broken due to stray uncommented comment.
| -rw-r--r-- | content_scripts/mode_visual_edit.coffee | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/content_scripts/mode_visual_edit.coffee b/content_scripts/mode_visual_edit.coffee index c00378f4..6da17ff1 100644 --- a/content_scripts/mode_visual_edit.coffee +++ b/content_scripts/mode_visual_edit.coffee @@ -112,10 +112,6 @@ class Movement extends CountPrefix else @selection.modify @alterMethod, movement... - # # Return a simple camparable value which will be different for different selections. - # hashSelection: -> - # [ @element?.selectionStart, @selection.toString().length ].join "/" - # Return a simple camparable value which depends on various aspects of the selection which may change when # the selection changes. This is used to detect, after a movement, whether the selection has changed. hashSelection: (debug) -> @@ -266,7 +262,7 @@ class Movement extends CountPrefix # Yank the selection; always exits; either deletes the selection or collapses it; returns the yanked text. yank: (args = {}) -> @yankedText = @selection.toString() - console.log "yank:", @yankedText if @debug This is used to detect, after a movement, whether the selection has changed. + console.log "yank:", @yankedText if @debug if args.deleteFromDocument or @options.deleteFromDocument @selection.deleteFromDocument() |
