Opened 12 years ago

Closed 8 years ago

#31747 closed defect (worksforme)

SQLite3 + libedit: ESC + Backspace behaves wrong

Reported by: elzhov@… Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: mww@…
Port: libedit sqlite3

Description (last modified by ryandesign (Ryan Carsten Schmidt))

In the past, the sequent typing of ESC and Backspace deleted the last word, as in any readline-bound application, in the bash for instance. Now it deletes the entire line from the end to start.

$ port info sqlite3
sqlite3 @3.7.8, Revision 1 (databases)

Change History (4)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: sqlite3 readline removed
Owner: changed from macports-tickets@… to mww@…

sqlite3 uses libedit now, not readline, for licensing reasons. Perhaps libedit behaves subtly differently from readline?

comment:2 Changed 12 years ago by elzhov@…

Thank you for reply, you're right :-)

Well, I found that sequence ESC+Backspace editline binding "[H" is correct since it calls "ed-delete-prev-word" command. The problem seems to be just with the internal command, I tried to bind the command with another keys, and those keys delete the entire line, either.

comment:3 Changed 12 years ago by jmroot (Joshua Root)

Cc: mww@… added
Owner: changed from mww@… to mcalhoun@…
Port: libedit added
Summary: SQLite3 + readline: ESC + Backspace behaves wrongSQLite3 + libedit: ESC + Backspace behaves wrong

comment:4 Changed 8 years ago by raimue (Rainer Müller)

Resolution: worksforme
Status: newclosed

I cannot reproduce the problem with sqlite3 @3.8.11.1_0 on OS X 10.10 Yosemite. ESC+Backspace deletes the word before the cursor, as expected.

$ otool -L /opt/local/bin/sqlite3
/opt/local/bin/sqlite3:
	/opt/local/lib/libedit.0.dylib (compatibility version 1.0.0, current version 1.53.0)
	/opt/local/lib/libncurses.6.dylib (compatibility version 6.0.0, current version 6.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
Note: See TracTickets for help on using tickets.