Sublime Forum

Bug: Using ctrl+c to copy, when two sublime windows are open, but one has an open dialog (eg: Save file?), will copy the dialog text, not highlighted text

#1

Recreate: Open two Sublime text editors. If one has an unsaved file, and you attempt to close the whole editor, it will ask you “Do you want to save xyz.json, Yes/No?” in a popup window. Now, don’t click anything, but pretend you never noticed that popup and just went to the other Sublime editor to work away.

While working, you highlight some text, use ctrl+c to copy this text, and then try to paste it - but instead of the text you highlighted, you get:
"---------------------------
Save Changes?

xyz.json has been modified, save changes?

Yes No Cancel
---------------------------"
pasted in your code! Heck of a strange bug, but that’s what happens to me! Anyone else?

0 Likes

#2

Based on my tests, this might be a different class of bug entirely than what you might think.

This is easily reproducible on Windows, but under MacOS and Linux, the “Do you want to save?” dialog is modal, so if you try to go to the other window to keep working, you can’t give it the focus.

Possibly the bug is that under Windows the dialog isn’t modal like it should be?

1 Like