diff options
| author | Pieter van Oostrum | 2020-01-16 20:21:37 +0100 |
|---|---|---|
| committer | Eli Zaretskii | 2020-01-18 11:54:03 +0200 |
| commit | 4217bc229b8d1614b3b5c44fd1dadb775ed1ef4a (patch) | |
| tree | 8d805c05e610cd3d6d7921dde98be59777ab3653 /test | |
| parent | 74b151195d8c548092bcc00ad1bf267570d9b9ac (diff) | |
| download | emacs-4217bc229b8d1614b3b5c44fd1dadb775ed1ef4a.tar.gz emacs-4217bc229b8d1614b3b5c44fd1dadb775ed1ef4a.zip | |
Fix infloop in shell.el
* test/lisp/shell-tests.el (shell-tests-completion-before-semi):
Amend the shell.el tests to catch errors such as bug#39057.
* lisp/shell.el (shell--parse-pcomplete-arguments): Skip the
semi-colon as well. This avoids inflooping when a semi-colon is
typed by the user. (Bug#39057)
Copyright-paperwork-exempt: yes
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/shell-tests.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/lisp/shell-tests.el b/test/lisp/shell-tests.el index 6d262f8e7c9..7113cb941c1 100644 --- a/test/lisp/shell-tests.el +++ b/test/lisp/shell-tests.el | |||
| @@ -34,8 +34,7 @@ | |||
| 34 | (with-temp-buffer | 34 | (with-temp-buffer |
| 35 | (shell-mode) | 35 | (shell-mode) |
| 36 | (insert "cd ba;") | 36 | (insert "cd ba;") |
| 37 | (forward-char -1) | ||
| 38 | (should (equal (shell--parse-pcomplete-arguments) | 37 | (should (equal (shell--parse-pcomplete-arguments) |
| 39 | '(("cd" "ba") 1 4))))) | 38 | '(("cd" "ba" "") 1 4))))) |
| 40 | 39 | ||
| 41 | ;;; shell-tests.el ends here | 40 | ;;; shell-tests.el ends here |