mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-01 08:00:37 +00:00
Reenable line selection when debug is off
Clicking line numbers when not in Debug mode and when "auto-add debug" is disabled will select the clicked line
This commit is contained in:
parent
fd5ba476b5
commit
b2f35b9e98
|
@ -3054,15 +3054,35 @@ FUNCTION ide2 (ignore)
|
||||||
(mX = 1 AND mY > 2 AND mY < (idewy - 5) AND ShowLineNumbers = 0) THEN
|
(mX = 1 AND mY > 2 AND mY < (idewy - 5) AND ShowLineNumbers = 0) THEN
|
||||||
'line numbers are visible and have been clicked or
|
'line numbers are visible and have been clicked or
|
||||||
'line numbers are hidden and the left border has been clicked
|
'line numbers are hidden and the left border has been clicked
|
||||||
ideselect = 0
|
IF AutoAddDebugCommand <> 0 OR vWatchOn <> 0 THEN
|
||||||
idecytemp = mY - 2 + idesy - 1
|
ideselect = 0
|
||||||
IF idecytemp =< iden THEN
|
idecytemp = mY - 2 + idesy - 1
|
||||||
idecy = idecytemp
|
IF idecytemp =< iden THEN
|
||||||
IF _KEYDOWN(100304) OR _KEYDOWN(100303) THEN
|
idecy = idecytemp
|
||||||
GOTO toggleSkipLine
|
IF _KEYDOWN(100304) OR _KEYDOWN(100303) THEN
|
||||||
ELSE
|
GOTO toggleSkipLine
|
||||||
GOTO toggleBreakpoint
|
ELSE
|
||||||
|
GOTO toggleBreakpoint
|
||||||
|
END IF
|
||||||
END IF
|
END IF
|
||||||
|
ELSE
|
||||||
|
ideselect = 1
|
||||||
|
idecy = mY - 2 + idesy - 1
|
||||||
|
IF idecy < iden THEN
|
||||||
|
IF (NOT KSHIFT) THEN ideselectx1 = 1: ideselecty1 = idecy
|
||||||
|
idecy = idecy + 1
|
||||||
|
idecx = 1
|
||||||
|
ELSEIF idecy = iden THEN
|
||||||
|
a$ = idegetline$(idecy)
|
||||||
|
IF (NOT KSHIFT) THEN ideselectx1 = 1: ideselecty1 = idecy
|
||||||
|
idecx = LEN(a$) + 1
|
||||||
|
ELSEIF idecy > iden THEN
|
||||||
|
idecy = iden
|
||||||
|
ideselect = 0
|
||||||
|
idecx = 1
|
||||||
|
END IF
|
||||||
|
wholeword.select = 0
|
||||||
|
idemouseselect = 0
|
||||||
END IF
|
END IF
|
||||||
END IF
|
END IF
|
||||||
END IF
|
END IF
|
||||||
|
|
Loading…
Reference in a new issue