[Pkg-mozext-commits] [nostalgy] 145/235: fix bug when cancelling the creation of an empty tag

David Prévot taffit at alioth.debian.org
Tue Oct 8 20:42:07 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository nostalgy.

commit b09c670f841aa34c85973c356a6ffb0abc544bae
Author: frisch <frisch at 56b81dcf-5a2f-0410-9db0-014be2e416ff>
Date:   Sun Dec 14 11:05:14 2008 +0000

    fix bug when cancelling the creation of an empty tag
    
    git-svn-id: http://nostalgy.googlecode.com/svn/trunk@145 56b81dcf-5a2f-0410-9db0-014be2e416ff
---
 CHANGES             |    1 +
 content/nostalgy.js |    5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/CHANGES b/CHANGES
index 5fcfe1f..6484508 100644
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,7 @@ Since 0.2.16
   - fix bugs with TB 3
   - allow it to run with TB 3.0b1
   - new completion mode "Match only the prefix of folder path or name, not any substring" (patch from Laurent Regnier)
+  - fix bug when cancelling the creation of an empty tag
 
 0.2.16
   - allow it to run with TB 3.0
diff --git a/content/nostalgy.js b/content/nostalgy.js
index c6aa894..d74df88 100644
--- a/content/nostalgy.js
+++ b/content/nostalgy.js
@@ -437,7 +437,8 @@ function NostalgyRunCommand() {
     nostalgy_command(f);
   }
   else {
-    if (s.substr(0,1) == ":" && s != ":") {
+    if (s.substr(0,1) == ":") {
+        if ((s == ":") || (s == "::")) return
       var name;
       if (s.substr(s.length-1,1) == ":")
          name = s.substr(1,s.length - 2);
@@ -451,7 +452,7 @@ function NostalgyRunCommand() {
         var name = null;
         if (i <= 0) {
             parent = gDBView.msgFolder.server.rootMsgFolder;
-            if (i = 0) name = s.substr(1, s.length - 1); else name = s;
+            if (i == 0) name = s.substr(1, s.length - 1); else name = s;
         }
         else {
             parent = NostalgyResolveFolder(s.substr(0, i));

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/nostalgy.git



More information about the Pkg-mozext-commits mailing list