Welcome to LQ.
For a start, you can install a working editor. There are 100+.
( No need to use 'gedit'.)
sudo apt-get install leafpad joe nano vim
( 'leafpad' is a simple GUI editor.)
And : When it is convenient, you can update gedit and it's dependencies,
and then try out, if it works again.)