fix electric key ~ behavior in filename completion
This commit is contained in:
parent
52da57f60c
commit
08fc3e80e9
1 changed files with 1 additions and 1 deletions
2
qe.c
2
qe.c
|
|
@ -7461,7 +7461,7 @@ static void do_minibuffer_electric_key(EditState *s, int key, int argval) {
|
|||
/* erase beginning of line if typing / or ~ in certain places */
|
||||
// XXX: behavior on yank should be customized too
|
||||
if (mb && mb->completion && (mb->completion->flags & CF_FILENAME)
|
||||
&& eb_nextc(s->b, 0, &offset) == '/') {
|
||||
&& ((c = eb_nextc(s->b, 0, &offset)) == '/' || c == '~')) {
|
||||
stop = s->offset;
|
||||
c = eb_prevc(s->b, s->offset, &offset);
|
||||
if (c == '/') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue