Revert "Delay :yank notification until message was yanked."
This reverts commit b79049261e
.
This commit is contained in:
parent
921e8b50b7
commit
7fe818f9c8
@ -680,16 +680,9 @@ class CommandDispatcher:
|
||||
mode = QClipboard.Clipboard
|
||||
target = "clipboard"
|
||||
log.misc.debug("Yanking to {}: '{}'".format(target, s))
|
||||
|
||||
msg = "Yanked {} to {}: {}".format(what, target, s)
|
||||
clipboard.changed.connect(functools.partial(
|
||||
self._display_yank_msg, clipboard, msg))
|
||||
clipboard.setText(s, mode)
|
||||
|
||||
def _display_yank_msg(self, clipboard, msg):
|
||||
"""Display a message when something was yanked."""
|
||||
message.info(self._win_id, msg)
|
||||
clipboard.changed.disconnect()
|
||||
message.info(self._win_id, "Yanked {} to {}: {}".format(
|
||||
what, target, s))
|
||||
|
||||
@cmdutils.register(instance='command-dispatcher', scope='window',
|
||||
count='count')
|
||||
|
Loading…
Reference in New Issue
Block a user