Skip to content

Commit

Permalink
fix #48
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengchun committed May 15, 2020
1 parent 9f7395f commit 51d8936
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions query.go
Expand Up @@ -76,6 +76,7 @@ func (a *ancestorQuery) Select(t iterator) NodeNavigator {
return nil
}
first := true
node = node.Copy()
a.iterator = func() NodeNavigator {
if first && a.Self {
first = false
Expand Down

0 comments on commit 51d8936

Please sign in to comment.