mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 22:08:00 +01:00
refactored some yanking code
This commit is contained in:
@@ -111,11 +111,14 @@ const vimperator = (function () //{{{
|
||||
}
|
||||
},
|
||||
|
||||
copyToClipboard: function (str)
|
||||
copyToClipboard: function (str, verbose)
|
||||
{
|
||||
var clipboardHelper = Components.classes["@mozilla.org/widget/clipboardhelper;1"]
|
||||
.getService(Components.interfaces.nsIClipboardHelper);
|
||||
clipboardHelper.copyString(str);
|
||||
|
||||
if (verbose)
|
||||
vimperator.echo("Yanked " + str, vimperator.commandline.FORCE_SINGLELINE);
|
||||
},
|
||||
|
||||
execute: function (str, modifiers)
|
||||
|
||||
Reference in New Issue
Block a user