[all-commits] [llvm/llvm-project] 8cc8b3: CommandObjectRegexCommand shouldn't put two comman...

jimingham via All-commits all-commits at lists.llvm.org
Fri Jun 3 11:35:19 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8cc8b36f24d6f3133c44e238a657309620eedc19
      https://github.com/llvm/llvm-project/commit/8cc8b36f24d6f3133c44e238a657309620eedc19
  Author: Jim Ingham <jingham at apple.com>
  Date:   2022-06-03 (Fri, 03 Jun 2022)

  Changed paths:
    M lldb/source/Commands/CommandObjectRegexCommand.cpp
    M lldb/test/API/functionalities/history/TestHistoryRecall.py

  Log Message:
  -----------
  CommandObjectRegexCommand shouldn't put two commands on the history stack.

It was putting the command the user typed, and then the resolved command in the
command history.  That caused up-arrow not to work correctly when the regex command
was invoked from a Python-command.  Plus it's just weird.

Differential Revision: https://reviews.llvm.org/D126789




More information about the All-commits mailing list