branch: externals/vc-got
commit c819459405eb9febdb67b19d08bfa50c5ec83017
Author: Omar Polo <[email protected]>
Commit: Omar Polo <[email protected]>

    trap c-g during stage operation
---
 vc-got-stage.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/vc-got-stage.el b/vc-got-stage.el
index 1caa93d..5f18f70 100644
--- a/vc-got-stage.el
+++ b/vc-got-stage.el
@@ -107,7 +107,10 @@ PROC is the process, STRING part of its output."
               (let ((msg (match-string 1)))
                 (kill-line)             ; kill the question
                 (vc-got-stage--kill-separators)
-                (process-send-string buf (if (y-or-n-p msg) "y\n" "n\n"))
+                (process-send-string buf
+                                     (condition-case nil
+                                         (if (y-or-n-p msg) "y\n" "n\n")
+                                       (quit "q\n")))
                 (erase-buffer)))))))))
 
 (defun vc-got-stage--sentinel (_proc event)

Reply via email to