Description
When multiple cursors are active and ⌘I (Beautify) is triggered, the
beautified query is inserted at each cursor position rather than replacing the
full document once. The result is a corrupted editor buffer containing one
copy of the beautified output per cursor.
Steps to Reproduce
- Open the SQL editor
- Enter a query:
select
*
FROM
users
3. Place multiple cursors (e.g. Option-click at the end of each line)
4. Press ⌘I to beautify
## Current Behavior
The beautified query is inserted at every cursor position, producing:
select SELECT
*
FROM
users
*SELECT
*
FROM
users
FROMSELECT
*
FROM
users
users SELECT
*
FROM
users
## Expected Behavior
Cursors are collapsed and the query is formatted once:
SELECT
*
FROM
users
## Environment
- App version: e.g TablePlus 6.9.2
- Database Version: MySQL 8.0.46
- macOS version: macOS Tahoe 26.2
Description
When multiple cursors are active and ⌘I (Beautify) is triggered, the
beautified query is inserted at each cursor position rather than replacing the
full document once. The result is a corrupted editor buffer containing one
copy of the beautified output per cursor.
Steps to Reproduce