1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | CUSTOM_COMMAND_SIG(highlight) { View_Summary view = get_active_view(app, AccessProtected); int32_t pos1 = view.cursor.pos; move_right(app); move_right(app); move_right(app); move_right(app); move_right(app); move_right(app); move_right(app); refresh_view(app, &view); int32_t pos2 = view.cursor.pos; view_set_highlight(app, &view, pos1, pos2, true); }; |
As I understand it, all space from pos1 to pos2 should be highlighted, but it is not highlighting. What am I missing?