mouse click offset in help

Egmont Koblinger egmont at uhulinux.hu
Thu Nov 11 17:07:09 UTC 2004


Hi,

In the help screen (F1) the rectangular area which accepts mouse click for a
link is shiftedtwo characters to the left. This means that the last two
letters of a link don't accept mouse click, however, two characters left
from the link do.

Attached patch fixes both for 4.6.0 and 2004-11-04-15 snapshot.


-- 
Egmont
-------------- next part --------------
diff -Naur mc-4.6.0.orig/src/help.c mc-4.6.0/src/help.c
--- mc-4.6.0.orig/src/help.c	2002-11-13 05:01:05.000000000 +0100
+++ mc-4.6.0/src/help.c	2004-11-11 02:24:47.000000000 +0100
@@ -389,11 +389,11 @@
 		}
 		else
 		    attrset (HELP_LINK_COLOR);
-		start_link_area (col, line, p);
+		start_link_area (col + 2, line, p);
 		break;
 	    case CHAR_LINK_POINTER:
 		painting = 0;
-		end_link_area (col - 1, line);
+		end_link_area (col + 1, line);
 		break;
 	    case CHAR_LINK_END:
 		painting = 1;


More information about the mc-devel mailing list