1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-06-29 09:20:38 +00:00

Minor tweak to F1 key behavior.

F1 for contextual help previously required the cursor to be inside the keyword. Now it can be to the right of the word, just like in QB4.5.
This commit is contained in:
FellippeHeitor 2016-08-20 00:17:07 -03:00
parent b65e63cda0
commit 1146ca18bd
2 changed files with 3 additions and 1 deletions

View file

@ -3,5 +3,5 @@ DIM SHARED BuildNum AS STRING
Version$ = "1.000"
'BuildNum format is YYYYMMDD/id, where id is a ever-increasing
'integer. If you make a change, update the date and increase the id!
BuildNum$ = "20160818/45"
BuildNum$ = "20160820/46"

View file

@ -2252,7 +2252,9 @@ FUNCTION ide2 (ignore)
'identify word or character at current cursor position
a$ = idegetline(idecy)
x = idecx
IF LEN(a$) > 0 AND x = LEN(a$) + 1 THEN x = x - 1
IF x <= LEN(a$) THEN
IF MID$(a$, x, 1) = " " OR MID$(a$, x, 1) = "(" THEN x = x - 1
IF alphanumeric(ASC(a$, x)) THEN
x1 = x
DO WHILE x1 > 1