diff --git a/llvm/lib/LineEditor/LineEditor.cpp b/llvm/lib/LineEditor/LineEditor.cpp index c7d5fd7dcf8ac5..3e4004313acf27 100644 --- a/llvm/lib/LineEditor/LineEditor.cpp +++ b/llvm/lib/LineEditor/LineEditor.cpp @@ -209,6 +209,7 @@ LineEditor::LineEditor(StringRef ProgName, StringRef HistoryPath, FILE *In, ::el_set(Data->EL, EL_PROMPT, ElGetPromptFn); ::el_set(Data->EL, EL_EDITOR, "emacs"); + ::el_set(Data->EL, EL_SIGNAL, 1); ::el_set(Data->EL, EL_HIST, history, Data->Hist); ::el_set(Data->EL, EL_ADDFN, "tab_complete", "Tab completion function", ElCompletionFn);