Confirmed.
It seems for multi-line this is what happens for the second and additional parts of a multi-line: the highlighting is shown correctly for the start of the line (for whatever parameter is show there); for characters after the first one the highlighting in the status bar isn't triggered until it the cursor has advanced the same number of characters as there are additional lines.
Code: Select all
;highlighting is correct on the entire line
OpenWindow(0, 1, 2, 3, 4, "Title", #PB_Window_SystemMenu, WindowID(12))
;highlighting is off by 1 character for line 2 on the entire line (not counting first character)
OpenWindow(0,
1, 2, 3, 4, "Title", #PB_Window_SystemMenu, WindowID(12))
;highlighting is off by 1 character for lines 2 -> 3 on the entire line (not counting first characters of each line)
OpenWindow(0,
1, 2, 3, 4, "Title", #PB_Window_SystemMenu, WindowID(12))
;highlighting is off by 1 character for line 2, 2 for line 3 on the entire line (not counting first characters of each line)
OpenWindow(0,
1,
2, 3, 4, "Title", #PB_Window_SystemMenu, WindowID(12))
;highlighting is off by (line#:#characters) 2:1, 3:2 (not counting first characters of each line)
OpenWindow(0,
1,
2,
3, 4, "Title", #PB_Window_SystemMenu, WindowID(12))
;highlighting is off by (line#:#characters) 2:1, 3:2, 4:3 (not counting first characters of each line)
OpenWindow(0,
1,
2,
3,
4, "Title", #PB_Window_SystemMenu, WindowID(12))
;highlighting is off by (line#:#characters) 2:1, 3:2, 4:3, 5:4 (not counting first characters of each line)
OpenWindow(0,
1,
2,
3,
4,
"Title", #PB_Window_SystemMenu, WindowID(12))
;highlighting is off by (line#:#characters) 2:1, 3:2, 4:3, 5:4, 6:5 (not counting first characters of each line)
OpenWindow(0,
1,
2,
3,
4,
"Title",
#PB_Window_SystemMenu, WindowID(12))
;highlighting is off by (line#:#characters) 2:1, 3:2, 4:3, 5:4, 6:5, 7:6 (not counting first characters of each line)
OpenWindow(0,
1,
2,
3,
4,
"Title",
#PB_Window_SystemMenu,
WindowID(12))
Spaces (1 for each additional line) had to be added on the last of each multi-line to allow correct highlighting all the way to the close parenthesis.
Also, the highlighting before the first character of each line (column 1) is only correct for the first and second line of a multi-line statement. It is off by 1 parameter for any lines in additional to the first 2 lines of a multi-line statement. This is best shown by placing the cursor at the beginning of a line and moving it down a line at a time.