Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
It's just bloat. No value.
|
|
|
|
|
|
|
|
|
|
In case of error return non-zero value instead of cleaning up navigator. This
way main loop may do some more cleanup, or maybe even act differently.
|
|
This change effectively backs out f1737ddd06141afbe99f37af3b5c2d0f1df5fe7a,
implementing the same functionality in a simpler and more correct way.
Implementation details:
* imv_navigator.wrapped - a new field that has value "0" by default; once
navigator wraps around the list, this field recieves value "1".
* imv_navigator_wrapped(&nav) - a new function that returns non-zero value iff
navigator wrapped around the list. Currently just returns value of
imv_navigator.wrapped.
While at it, expanded "test_navigator_remove" and merged it with
"test_navigator_add". Resulting test is called "test_navigator_add_remove".
Fixes #94.
|
|
Test that removing items leads to predictable results. Right now test is fairly
incomplete, because it does not cover moving in reversed direction.
|
|
|
|
|
|
|
|
It was not fixed after imv_navigator_poll_changed() function was changed.
|
|
|