1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 20:17:59 +01:00

Fix t_p broken in revision 650be38ccc54. Closes issue #391.

This commit is contained in:
Kris Maglione
2011-02-19 15:06:58 -05:00
parent 83e8d068c2
commit 4297b54d7a
4 changed files with 15 additions and 18 deletions

View File

@@ -771,10 +771,7 @@ var Editor = Module("editor", {
["p"], "Paste clipboard contents",
function ({ count }) {
dactyl.assert(!editor.isCaret);
if (!count)
count = 1;
while (count--)
editor.executeCommand("cmd_paste", count);
editor.executeCommand("cmd_paste", count || 1);
modes.pop(modes.TEXT_EDIT);
},
{ count: true });