Sublime Forum

Clipboard emptied when CTRL-C with no selection

#1

I’ve been using SublimeText in various Ubuntu LTS versions upto 24.04 and I still have the same ‘bug’.

Whenever I already have some text/code copied into the clipboard and then (accidentally) press another CTRL-C but with no text or code selected, Ubuntu’s clipboard will be emptied.

Technically perhaps correct (because nothing was selected), but practically not the desired outcome. IMHO, the clipboard should not be cleared when copying a non-selection.

0 Likes

#2

did you consider setting "copy_with_empty_selection": false, in your user preferences?

0 Likes

#3

Copying with nothing selected copies the line, even if the line is empty the clipboard is filled with a newline and is therefore not empty.

1 Like

#4

@ kingkeith
Apparently not, it’s also not a default setting for copying I would expect. I will give it a go.

0 Likes

#5

Well, apparently “copy_with_empty_selection”: false` seems to do the trick. Thanks.

0 Likes