[chrony-dev] [PATCH 1/1] client: re-work tab-completion to work with libedit 20180525-3.1 |
[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]
client: re-work tab-completion to work with libedit 20180525-3.1 Remove spaces from tab-completion results and now break on a space Tested with both readline and editline (libedit) Ref: libedit 20180525-3.1 escapes spaces in tab-completion https://www.mail-archive.com/chrony-users@xxxxxxxxxxxxxxxxxxxx/msg01731.html The key was to use the readline/libedit global "rl_line_buffer" to look-back from "start" to determine which command options should be matched, if any. Patch attached. Lonnie
Attachment:
0001-client-re-work-tab-completion-to-work-with-libedit-2.patch
Description: Binary data
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |