Skip to content

Commit 42a7f70

Browse files
multiline selectors
1 parent 6d64fe6 commit 42a7f70

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/add-line.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ function set(prop, value, opts) {
217217
diff = (ref.source.end.line - 1) - cursorPosition.row;
218218
}
219219

220+
if (currentNode.selectorHeight && !currentNode.nodes.length) {
221+
diff += currentNode.selectorHeight - 1;
222+
}
223+
220224
if (diff > 0) {
221225
cursor.moveDown(diff);
222226
}

0 commit comments

Comments
 (0)