Opened 11 years ago
Closed 11 years ago
#11357 closed defect (fixed)
off-by-one error when searching with nth:
| Reported by: | naoliv | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | 15.04 |
| Component: | Core | Version: | |
| Keywords: | Cc: |
Description
Download way 292982894 without selecting the referrers or members.
Try to search for nth:1 and note how it's finding the second node, instead the first one.
w292982894 is made from 4 nodes: 2965414055, 2965414056, 2965414057, 2965414058, in this order.
It seems that there is some kind of off-by-one error somewhere, since we can't search for nth:0 and nth:3 returns the last node (the fourth).
The help message says that we can search for the n-th node of a way using this (but it doesn't work for the first node)
You can also draw a two-nodes way and try to find the first node.
Attachments (0)
Change History (1)
comment:1 by , 11 years ago
| Milestone: | → 15.04 |
|---|---|
| Resolution: | → fixed |
| Status: | new → closed |



The search is 0 indexed.
nth:0is possible since r8250.