Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.39k stars 166 forks source link

Highlighting breaks links when wrap is enabled #5525

Closed pintassilgo closed 1 month ago

pintassilgo commented 1 month ago

At first it's fine: image

But as soon as I press Ctrl+F and type a char that will create highlight in the URL, the wrapped portion has the link removed: image

Simple selection does no harm: image

The issue is in highlights created by search or by HiOccur. HiOccur example: image

To reproduce this issue, you must have word-wrap enabled and a wrapped link.

Code used in the example:

                                                                      if (id === "redevida") {
                                                                        url = "https://cvd1.cds.ebtcvd.net/live-redevida/smil:redevida.smil/playlist.m3u8";

You might need to resize your Cuda window to wrap the line like in my screenshots.

Alexey-T commented 1 month ago

Thanks for report, I will check it.

Alexey-T commented 1 month ago

Fixed, beta updated.

pintassilgo commented 1 month ago

Looks fixed, thanks!