Commits

Steve Borho committed 29f03b0

gdialog: return only when command matches

Problem reported by Giorgos Keramidas

Comments (0)

Files changed (1)

                     path = cmd
                 diffopts = self.ui.config('extdiff', 'opts.' + cmd, '')
                 diffopts = diffopts and [diffopts] or []
+                return path, diffopts
             elif cmd == usercmd:
                 # command = path opts
                 if path:
                     path = diffopts.pop(0)
                 else:
                     path, diffopts = cmd, []
-            return path, diffopts
+                return path, diffopts
         return None, None
 
     def _parse_config(self):