Caret position on mouse click

Solved bugs are moved into this topic...
Stem75
Posts: 55
Joined: 09.01.2024 15:29

Caret position on mouse click

Post by Stem75 »

Is this the default action in Cudatext for the caret; And if it is can i change it somehow because i didn't found any settings.
Attachments
___Screenshot   0597.png
___Screenshot 0597.png (6 KiB) Viewed 5042 times
Last edited by Stem75 on 12.01.2024 10:50, edited 1 time in total.
Stem75
Posts: 55
Joined: 09.01.2024 15:29

Re: Caret position on mouse click

Post by Stem75 »

Weird now it's working.
Stem75
Posts: 55
Joined: 09.01.2024 15:29

Re: Caret position on mouse click

Post by Stem75 »

Maybe it is random. Clicking multiple times in different places sometimes is as at the photo and others working ok.
Most noticeable when i click on the left side of a space near the letter.
Stem75
Posts: 55
Joined: 09.01.2024 15:29

Re: Caret position on mouse click

Post by Stem75 »

If i hit directly the letter that i want i think it selects this letter almost always at the right.
Attachments
___Screenshot   0599.png
main Alexey
Posts: 2257
Joined: 25.08.2021 18:15

Re: Caret position on mouse click

Post by main Alexey »

I tried it on Linux gtk2 version, works ok here.
caret goes to the nearest side of letter.
tried the 'proportional' font too.

1) What is your OS, gtk2 or qt5?
2) if you zoom in to 300% (Ctrl+MouseWheelUp), effect is the same?
Stem75
Posts: 55
Joined: 09.01.2024 15:29

Re: Caret position on mouse click

Post by Stem75 »

Yes with 300% zoom.

I am on windows 7 x64

Some lines in my file are 290 characters long without word-wrap. Maybe it has something to do?
main Alexey
Posts: 2257
Joined: 25.08.2021 18:15

Re: Caret position on mouse click

Post by main Alexey »

I now tried also on Win7 x64. Still no bug here. Even with text 'Total-part'.

>lines in my file are 290 characters long without word-wrap.
it don't matter.
Stem75
Posts: 55
Joined: 09.01.2024 15:29

Re: Caret position on mouse click

Post by Stem75 »

OK then. It might be a localized problem. Or is something in my setup.

Just for the record (in case someone has the same problem):

I am using fira code fonts (without ligatures) in the editor and Verdana for the UI.
Changed font from fira code to Verdana for the editor to match the UI.
The file was encoded in cp1253.
i encode it from cp1253 to UTF 8.

The same thing.

Seems to me that when word-wraped it doesn't happen. (have to test it more)

Also i can't reproduce it in Notepad++ with the same file.

Anyway thanks for looking into it.
Stem75
Posts: 55
Joined: 09.01.2024 15:29

Re: Caret position on mouse click

Post by Stem75 »

Sorry for keep posting, but i am trying to give as much information as i can.

Tested the same file with synwrite - notepad - notepad++

all works like this click right from the letter choose left
___Screenshot   0601.jpg
___Screenshot 0601.jpg (6.57 KiB) Viewed 4994 times
Cudatext like this (with my problem) click left from the letter choose right
___Screenshot   0602.jpg
___Screenshot 0602.jpg (5.44 KiB) Viewed 4994 times
Stem75
Posts: 55
Joined: 09.01.2024 15:29

Re: Caret position on mouse click

Post by Stem75 »

Also all of them shows this at the end
___Screenshot   0605.jpg
Cudatext shows this
___Screenshot   0612.jpg
___Screenshot 0612.jpg (3.44 KiB) Viewed 4994 times
Test it with a clean cudatext install the same.

My last post for info in this topic. I promise. Again thanks.
Post Reply