ethan-leba / tree-edit

🌲 Structural editing in Emacs for any™ language!
GNU General Public License v3.0
395 stars 16 forks source link

Display the currently selected node's type when it has a parent or child with the same range #32

Closed ethan-leba closed 2 years ago

ethan-leba commented 2 years ago

This issue is particularly bad in Python, where a block is the same size as an expression statement is the same size as a call and so are indistinguishable with the region overlay. Tree-edit should detect this case and display the current node type.

ethan-leba commented 2 years ago

Implemented in 46ea099807b3e4818109b6d0c2991faa01cb23ec