Pass caret tests

This commit is contained in:
Artur Shaikhullin 2017-12-07 17:30:32 +06:00
parent 890e26b2b5
commit 5f1e0224a9
3 changed files with 2 additions and 3 deletions

View File

@ -885,7 +885,6 @@ class CommandDispatcher:
message.info("{} {} yanked to {}".format(
len(s), "char" if len(s) == 1 else "chars", target))
if not self.yank_object['keep']:
log.procs.debug(self.yank_object['keep'])
modeman.leave(self._win_id, KeyMode.caret, "yank selected",
maybe=True)
self.yank_object = None

View File

@ -284,7 +284,7 @@ class WebEngineCaret(browsertab.AbstractCaret):
# WORKAROUND for
# https://bugreports.qt.io/browse/QTBUG-53134
self._tab.run_js_async(
'window.getSelection().toString()', callback)
javascript.assemble('caret', 'getSelection'), callback)
def _follow_selected_cb(self, js_elem, tab=False):
"""Callback for javascript which clicks the selected element.

View File

@ -1051,7 +1051,7 @@ window._qutebrowser.caret = (function() { // eslint-disable-line max-statements,
funcs.moveToEndOfDocument = () => {
CaretBrowsing.move("forward", "documentboundary");
window.scrollTo(0, document.body.scrollHeight);
funcs.moveLeft();
};
funcs.dropSelection = () => {