Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-686

Editing breaks history scroll

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: Embedded Shell
    • None
    • Not Needed

      Problem Description

      Scrolling through command history stops if a prior command is edited. It shoudl be possible to abandon an edit and continue to scroll through command history. 

      Steps to Reproduce

      Open mongosh, run 3 or 4 commands 

      Scroll back and forth, note that all commands are available

      Edit a command in the middle of the history

      Try to scroll forwards of backwards through the list

      Note that the other commands are no longer available 

      Expected Results

      Ability to abandon an edit and continue scrolling through commands

      Actual Results

      Have to ctrl-c to exit from editing unwanted command 

      Additional Notes

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            dave.cuthbert@mongodb.com Dave Cuthbert (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: