This problem relates to editing with Code::Blocks source code editor under Kubuntu 18.04
Code::Blocks svn 11278 wx3.0.3 Linux Unicode x64
The problem is a little hard to describe accurately, but please see attached image. Suddenly, when editing code, the editor apparently loses the caret position and I no longer see the text being typed where the cursor is. Instead, the typed text appears at top left in the editor window "over" the line numbers. If I press the space bar or period (full stop) the text appears where it should be. But soon after, or immediately the same happens again.
I have searched for similar problem descriptions, but have found nothing. I tried replacing the keyboard as I thought it was related, but the same happens with the new keyboard. I also used a different USB port for the keyboard and rebooted the computer several times, but the problem persists. The funny thing it looks to be isolated to the Code::Blocks editor. Could it be Scintilla related?
This problem is driving me insane and any hint towards a fix would be most welcome. Thanks in advance!