1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 00:27:57 +01:00

Fixing ;y<num> to yank the hint destination URL instead of the current page

This commit is contained in:
Daniel Bainton
2008-01-25 05:06:58 +00:00
parent 82540e8c65
commit a510328e4b
2 changed files with 2 additions and 2 deletions

View File

@@ -353,7 +353,7 @@ vimperator.Hints = function () //{{{
case "V": vimperator.commands.viewsource(loc, true); break;
case "w": vimperator.buffer.followLink(elem, vimperator.NEW_WINDOW); break;
case "W": vimperator.commandline.open(":", "winopen " + loc, vimperator.modes.EX); break;
case "y": setTimeout(function(){vimperator.copyToClipboard(vimperator.buffer.URL, true)}, timeout + 50); break;
case "y": setTimeout(function(){vimperator.copyToClipboard(loc, true)}, timeout + 50); break;
case "Y": setTimeout(function(){vimperator.copyToClipboard(elem.textContent || "", true)}, timeout + 50); break;
default:
vimperator.echoerr("INTERNAL ERROR: unknown submode: " + submode);