Merge pull request #479 from dickmao/toggle-output-peachpuff-pink

Toggle output (C-c C-e) should also invalidate footer
This commit is contained in:
John Miller 2019-03-09 20:22:44 -06:00 committed by GitHub
commit 14b2716363
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -44,7 +44,7 @@ Scenario: Collapse doesn't break undo
And I press "C-<up>"
And I press "C-c C-e"
And I press "C-/"
Then the cursor should be at point "76"
Then the cursor should be at point "77"
And I undo again
Then the cursor should be at point "55"

View file

@ -675,7 +675,8 @@ Return language name as a string or `nil' when not defined.
(setf (slot-value cell 'collapsed) collapsed)
(apply #'ewoc-invalidate
(slot-value cell 'ewoc)
(ein:cell-element-get cell :output))))
(append (ein:cell-element-get cell :output)
(list (ein:cell-element-get cell :footer))))))
(cl-defmethod ein:cell-collapse ((cell ein:codecell))
(ein:cell-set-collapsed cell t))