Strange character input lag in CodeEditor, JUCE v5.0.1

Hi, In my app if I type keyboard input into a plain CodeEditorComponent (with null Tokenizer) there is always short time lag between when the cursor immediately moves right and the appearance of the newly entered character. I can’t figure out why this is happening. Its a significant lag, perhaps .3-.5 second! I do actually see a thin slice of the character appearing immedately when the key goes down and the cursor moves, but it takes time until the character fully appears. If I hold the key down to get multiple insertions the behavior seems to go away, but when I go back to typing text input character by character then the lag happens again.

Any idea’s why this might be happening would be greatly appreciated, its driving me nuts! Im running MacOS 10.13.2 and 10.12.6 and the problem appears in both.

Thanks for any help,
Rick Taube
Prof. Composition/Theory
School of Music
University of Illinois at Urbana-Champaign
phone: 217 244 2684
President, Illiac Software, Inc.

I vaguely remember there being a repaint issue like that sometime last year, and fixed it. Are you saying this still happens in the latest version?

Thank you Jules. Ill try the very latest version and let you know.

That was the problem. Upgraded to 5.2.0 and the latency is gone thanks!