On Sun, 18 Dec 2011 16:37:24 -0800 (PST)
HansBKK <[email protected]> wrote:

> Letting your script delete the node gives the expected (correct) result.
> 
> Deleting the same node **manually** (rt-click delete) gives me the jumping 
> behaviour, in this case to the top location.

The right-click delete is different code, unlike the other deleted
commands, it can delete multiple selected nodes at once.  I.e. click a
node in the tree, shift-click another node to select all nodes between,
or ctrl-click various separate nodes.

These (potentially) multi-level deletes can get very complicated in
terms of what's left and what's gone afterwards, say you have

A
   B
      C
      D
   E
      F
   G
H

select B, D, and F, then delete them all, where should the cursor go?
It's not clear where it was to start with, given that there were three
selected nodes.

I wonder if the code also has trouble knowing which clone was the one
selected.

Anyway, if you want more predictable results with single node
deletions, use Ctrl-X or bind something to the delete-node command.

Cheers -Terry

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to