]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8808 #resolve fixed ^D in fs_cli with editline to delete char under cursor, not...
authorKen Rice <krice@freeswitch.org>
Mon, 8 Feb 2016 18:42:41 +0000 (12:42 -0600)
committerKen Rice <krice@freeswitch.org>
Mon, 8 Feb 2016 18:42:41 +0000 (12:42 -0600)
libs/esl/fs_cli.c

index 419aa9b50aecd2beb51d73c31ddedd70b3aea7da..bbdf9a1426e4d34e89a6c913f29a2dcc40e8730f 100644 (file)
@@ -214,7 +214,7 @@ static unsigned char console_eofkey(EditLine *el, int ch)
                return CC_EOF;
        } else {
                if (line->cursor != line->lastchar) {
-                       line->cursor++;
+                       el_cursor(el, 1);
                        el_deletestr(el, 1);
                }
                return CC_REDISPLAY;