Skip to content

Editline v1.16.0

Compare
Choose a tag to compare
@troglobit troglobit released this 16 Sep 08:39
· 119 commits to master since this release

Event loop callback support.

Changes

  • rl_unintialize(), new function to free all memory, by Claus Fischer
  • rl_insert_text(), new GNU Readline compat function
  • rl_refresh_line(), new GNU Readline compat function
  • rl_callback_*(), alternate interface to plain readline() for event loops. Modeled after the GNU Readline API
  • rl_completion_entry_function, and rl_attempted_completion_function are two new GNU Readline compat user hooks for the completion framework
  • rl_completion_matches() and rl_filename_completion_function() are two new GNU Readline compat functions
  • Add new example: fileman.c from GNU Readline to demonstrate the level of compatibility of the revamped completion framework
  • Add support for Ctrl-Right and Ctrl-Left, forward/backward word
  • Add .deb package to official release target

Fixes

  • Fixed header guards, avoid using leading __
  • Spell check fixes
  • Remove duplicate code in history check
  • Use NULL instead of 0, and -1 instead of NULL, where applicable
  • Misc. minor Coverity Scan fixes
  • Misc. minor fixes to testit.c example code
  • Add -Wextra to std CFLAGS
  • Check fclose() return value in in write_history() and read_history()
  • Initialize global variables and reset to NULL on free()
  • Fix off-by-one in forward kill word, avoid deleting too much
  • Skip (or kill) leading whitespace when skipping (or killing) forwards