On 3/11/2014 11:07 AM, Edward K. Ream wrote:
On Tue, Mar 11, 2014 at 9:58 AM, Jacob Peck <[email protected]
<mailto:[email protected]>> wrote:
>
Am I correct in assuming you used the rclick popup menu to do the delete?
Confirmed -- I just tested using the context menu on a new outline
with a bunch of empty nodes. Additionally, this prevented Leo
from closing, and I had to force-kill it.
So, how did you delete all the nodes? Were they all children of a
single top-level node, or did you delete them one-by-one?
This is presumably a bug in the
contextmenu.py plugin. Do you agree?
Edward
I created a new .leo file, hit ctrl-I several times, then using
shift-clicking, I selected all of them. After that, I did right-click
-> Delete. It deleted all of them in a single action. It's likely in
contextmenu.py
Perhaps related, the following extremely destructive script does
something similar:
----
@language python
''' this script breaks Leo HARD. '''
c.deletePositionsInList(c.all_positions())
----
I think Leo's core needs protections to prevent the last node in an
outline from being deleted. Then the bug in contextmenu.py would likely
disappear, and Leo couldn't be left in an inconsistent broken state.
-->Jake
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.