enComputerevilvte
adm Find login register

bug: MATCH_STRING_EXEC prevents text selection

aragon
1 bug: MATCH_STRING_EXEC prevents text selection
Promote 0 Bookmark 02010-04-18quote  

Hi,

I noticed a bug with the new MATCH_STRING_EXEC option.  When enabled it makes it impossible to select text with the mouse.  Not sure how to fix it.

 

Regards,

Aragon

caleb
2 bug: MATCH_STRING_EXEC prevents text selection
Promote 0 Bookmark 02010-04-19quote  

It is the feature of libvte.

There is no convenient way to fix it.

Maybe you can #define MENU_MATCH_STRING_EXEC and right-click to choose "Copy" the matched string. :-)

aragon
3
Promote 0 Bookmark 02010-04-21quote  

Hey.  I believe I have the fix for this.  I've also fixed another bug I discovered.  First the other bug:

URIs with "&" in them get cut off just before the "&".  Modified the system() string to enclose the URI in single quotes and it works.  Patch attached.

For the original bug, looks like the return of menu_popup() just needs to be tweaked.  If VTE reports no matched URI on a button press, return FALSE (instead of TRUE).  You'll see this in my patch.

My patch also changes the URI click button to 2 (middle click).  This is a better idea IMHO, and it's how at least one other VTE based term does things.

Hope you like. :)

enComputerevilvte
adm Find login register
views:7806