diff options
author | 2016-05-10 10:49:37 +0000 | |
---|---|---|
committer | 2016-05-10 10:49:37 +0000 | |
commit | dddc8490d90a7478ec6b2430fb09b5626543ec88 (patch) | |
tree | 28e152b4bd7def28fba67dde2d9817e4775d970e /sys/lib/libkern | |
parent | typo in comment (diff) | |
download | wireguard-openbsd-dddc8490d90a7478ec6b2430fb09b5626543ec88.tar.xz wireguard-openbsd-dddc8490d90a7478ec6b2430fb09b5626543ec88.zip |
Fix history_get():
* Respect history_base.
* Bail out early for arguments that are too small.
* Select entry by readline offset, not by editline event number.
* Restore history cursor in case of failure.
This fixes the test_remove() regression test.
Based on a patch from Bastian Maerkisch <bmaerkisch at web dot de>.
Dmitrij Czarkoff pointed out a flaw in it that i fixed.
OK czarkoff@.
Diffstat (limited to 'sys/lib/libkern')
0 files changed, 0 insertions, 0 deletions