Module Name: src Committed By: christos Date: Mon May 9 21:27:55 UTC 2016
Modified Files: src/lib/libedit: editline.3 editline.7 readline.c Log Message: GNU readline(3) regards history chronologically, that is, from the perspective of the dawn of time, so "next" means "newer" and "previous" means "older". Libedit, by contrast, uses reverse chronology and regards history from the perspective of the present, such that "next" means "longer ago" and "previous" means "not so long ago". The following patch fixes previous_history() and next_history() as proposed by Bastian Maerkisch. But there is a related problem demonstrated by Bastian's regression tests that his patch did not fix: next_history() can advance not only to the newest entry, but beyond it, which core libedit cannot do. So that feature must be implemented locally in readline.c. With that, the last of Bastians tests is fixed, test_movement_direction(). This patch also improves libedit documentation to more clearly state what "previous" and "next" mean. GNU readline documentation is just as unclear, but we can't easily fix that since libedit doesn't include its own readline.3 manual. (Ingo Schwarze) To generate a diff of this commit: cvs rdiff -u -r1.89 -r1.90 src/lib/libedit/editline.3 cvs rdiff -u -r1.4 -r1.5 src/lib/libedit/editline.7 cvs rdiff -u -r1.131 -r1.132 src/lib/libedit/readline.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.