eranif / codelite

A multi purpose IDE specialized in C/C++/Rust/Python/PHP and Node.js. Written in C++
https://codelite.org
GNU General Public License v2.0
2.14k stars 456 forks source link

[Bug]: When moving cursor horizontally or vertically, the column/line numbers are lagging behind #3505

Open yunkot opened 2 hours ago

yunkot commented 2 hours ago

What happened?

When moving the cursor in CodeLite with keys horizontally or vertically, or when typing key repeatedly, the column and line numbers seem to be refreshed every 1-2 seconds. Therefore, it is practically impossible to precisely position the cursor, e.g. at specific line and column, without waiting each time until the counter is updated. I don't know of any other text editor that has this kind of input lag.

This could have be a regression after some performance optimizations in CodeLite. However, updating the cursor position is not a performance-intensive task, so in a production environment it should be updated as soon as cursor position has changed.

P.S. Despite this, CodeLite still remains sluggish, to a point of being unusable on Raspberry PI 5, when trying to edit any non-trivial source code files.

Version

Commit 84dd6ddd5fd529ef53f224453d33fb6ec43fd11f.

Operating system

Linux Mint 22 (Ubuntu 24.04) / Xfce / X11 / wxWidgets 3.2.4

yunkot commented 2 hours ago

FYI, CodeLite revision 6eb52aaff1bb3b999001fbbf56f38bc844000c41 doesn't suffer from this.