Fixes Cursor Focus Bug in SDK Command Handling

Fixed a bug that caused the cursor to jump above an SDK command if a blank line was not present between commands.