Skip to content

Conversation

@kmvanbrunt
Copy link
Member

do_history no longer calls do_edit since edit is a command that is commonly overridden
Fixes #793

@codecov
Copy link

codecov bot commented Oct 31, 2019

Codecov Report

Merging #795 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #795      +/-   ##
==========================================
+ Coverage   96.93%   96.93%   +<.01%     
==========================================
  Files          14       14              
  Lines        3490     3491       +1     
==========================================
+ Hits         3383     3384       +1     
  Misses        107      107
Impacted Files Coverage Δ
cmd2/cmd2.py 96.67% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 406f017...1aa8d45. Read the comment docs.

# noinspection PyTypeChecker
self.do_edit(quoted_fname)

self._run_editor(fname)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not directly calling the edit command see within the history command is a good thing as it removes the possibility of a pathological infinite loop which then allows us to put edit commands in the history.

@tleonhardt tleonhardt merged commit b1873c3 into master Oct 31, 2019
@tleonhardt tleonhardt deleted the history_edit branch October 31, 2019 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

History should not call do_edit

3 participants