Open
Description
Describe the problem
The bubbletea library we use selects word boundaries based on whitespace:
As a result, if your input is (with your cursor at the end of the line):
select some_func(hello
And you do a backward-word-delete, it will delete all of some_func(hello
. Other applications such as psql
only delete hello
.
The libedit behaviour is likely:
/* ce__isword():
* Return if p is part of a word according to emacs
*/
libedit_private int
ce__isword(wint_t p)
{
return iswalnum(p) || wcschr(L"*?_-.[]~=", p) != NULL;
}
GNU readline seems to use rl_alphabetic which depends on some internal config and some conditional compilation:
int _rl_allow_pathname_alphabetic_chars = 0;
static const char * const pathname_alphabetic_chars = "/-_=~.#$";
_rl_walphabetic (WCHAR_T wc)
{
int c;
if (iswalnum (wc))
return (1);
c = wc & 0177;
return (_rl_allow_pathname_alphabetic_chars &&
strchr (pathname_alphabetic_chars, c) != NULL);
}
Jira issue: CRDB-36856