Bug with code snippet macro

When adding a code snippet to an expandable macro (I dearly miss the "collapsible" button in code snippet options), pressing the up key in the code snippet takes the caret/text cursor all the way above the code snippet, into the expandable section. Very annoying when make small edits to code in confluence.