@@ -12,7 +12,7 @@ pub fn expand_selection(syntax: &Syntax, text: RopeSlice, selection: &Selection)
12 .root_node()
12 .root_node()
13 .descendant_for_byte_range(from, to)
13 .descendant_for_byte_range(from, to)
14 .and_then(|node| {
14 .and_then(|node| {
15− if node.child_count() == 0 || (node.start_byte() == from && node.end_byte() == to) {
15+ if node.start_byte() == from && node.end_byte() == to {
16 node.parent()
16 node.parent()
18 Some(node)
18 Some(node)