I found a discussion of a bug in SDL that seems to be exactly what we're seeing here.
https://bugzilla.libsdl.org/show_bug.cgi?id=2669
It was resolved by user historic_bruno and his patch is included in SDL 2.04 which was released not long ago.
I'd be interested in seeing what version of SDL the LevelEditor is built with.
Maybe updating SDL could fix the problem
EDIT: The SDL included in the Steam Soma dist is SDL 2.0.3.
Also, here's a direct link to the patch commit
https://hg.libsdl.org/SDL/rev/c5e1c4b7b7a1