xnedit icon indicating copy to clipboard operation
xnedit copied to clipboard

Selection is deselected

Open cblc opened this issue 1 year ago • 4 comments

Not sure what's going on, but this has happened to me three times now. It was always while using the Search&Replace dialog, and I think it was after pasting text in the "String to Find" or "Replace With" fields.

After the issue happens, then whenever you select text, you see the selection for a fraction of a second, and then it becomes unselected. It happens for every type of selection (manual selection, Find, Replace, and even with selections created with macros).

Because of this, it's not possible to copy/paste, nor to do anything with selections after the issue is triggered.

Quitting XNEdit and starting it again is the only "fix" I found so far.

Any idea of what might go on? Could it be a XQuartz problem?

cblc avatar Aug 02 '23 19:08 cblc

Haven't experienced this bug on Linux or FreeBSD. On macOS with XQuartz, I can't even paste text into the search/replace dialog for some reason. I will look into this further.

unixwork avatar Aug 06 '23 11:08 unixwork

I did some more testing but couldn't reproduce the bug. I guess it is an XQuartz problem.

Maybe you can fix this problem by adding -DXNE_TEXTFIELD to your CFLAGS. This replaces the motif textfields in the search & replace dialog with a more unicode capable textfield, and maybe this new textfield doesn't trigger the bug.

unixwork avatar Sep 30 '23 16:09 unixwork

Thank you for the idea! Will try it in my next build.

cblc avatar Oct 05 '23 10:10 cblc

I have not hit anymore this after months of use, and I even didn't rebuild it with '-DXNE_TEXTFIELD'. I'm going to build now the current source, with the addition of filters I/O, and I won't be using '-DXNE_TEXTFIELD' either (but I'll disable multicursor, for my peace of mind, because it has sometimes created problems in the sources I was editing). I'll keep an eye to see if this issue arises again or not.

cblc avatar Apr 01 '24 12:04 cblc