summaryrefslogtreecommitdiff
path: root/debugon.go
diff options
context:
space:
mode:
Diffstat (limited to 'debugon.go')
-rw-r--r--debugon.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/debugon.go b/debugon.go
index 4e68db3..9154472 100644
--- a/debugon.go
+++ b/debugon.go
@@ -32,7 +32,7 @@ type debugParser struct {
}
func (dp *debugParser) Name() string {
- if len(activeParsers) > 2 && activeParsers[len(activeParsers)-2].Var == dp.Var {
+ if len(activeParsers) > 1 && activeParsers[len(activeParsers)-2].Var == dp.Var {
return dp.Match
}
return dp.Var