"Duplicate" doesn't confine itself to selection


#1

0.158 here.

See below. Selected one JSON node, shift-command-D. Instead on duplicating what was selected (starting with the ,) it picked up the rest of the initial line too (},) which let to invalid code.