… | |
… | |
135 | rxvt_term::iso14755_54 (int x, int y) |
135 | rxvt_term::iso14755_54 (int x, int y) |
136 | { |
136 | { |
137 | x = Pixel2Col (x); |
137 | x = Pixel2Col (x); |
138 | y = Pixel2Row (y); |
138 | y = Pixel2Row (y); |
139 | |
139 | |
140 | if (x < 0 || x >= ncol |
140 | if (!IN_RANGE_EXC (x, 0, ncol) |
141 | || y < 0 || y >= nrow) |
141 | || !IN_RANGE_EXC (y, 0, nrow)) |
142 | return; |
142 | return; |
143 | |
143 | |
144 | for (;;) |
144 | for (;;) |
145 | { |
145 | { |
146 | const line_t &l = save[y + saveLines - view_start]; |
146 | const line_t &l = ROW(-view_start); |
147 | |
147 | |
148 | text_t t = l.t[x]; |
148 | text_t t = l.t[x]; |
149 | |
149 | |
150 | if (t != NOCHAR || !x) |
150 | if (t != NOCHAR || !x) |
151 | { |
151 | { |
… | |
… | |
154 | break; |
154 | break; |
155 | } |
155 | } |
156 | |
156 | |
157 | x--; |
157 | x--; |
158 | } |
158 | } |
159 | |
|
|
160 | } |
159 | } |
161 | #endif |
160 | #endif |
162 | |
161 | |
163 | #if ENABLE_OVERLAY |
162 | #if ENABLE_OVERLAY |
164 | void |
163 | void |
… | |
… | |
1035 | { |
1034 | { |
1036 | if (mouse_slip_wheel_speed == 0 |
1035 | if (mouse_slip_wheel_speed == 0 |
1037 | || mouse_slip_wheel_speed < 0 ? scr_page (DN, -mouse_slip_wheel_speed) |
1036 | || mouse_slip_wheel_speed < 0 ? scr_page (DN, -mouse_slip_wheel_speed) |
1038 | : scr_page (UP, mouse_slip_wheel_speed)) |
1037 | : scr_page (UP, mouse_slip_wheel_speed)) |
1039 | { |
1038 | { |
1040 | if (view_start == nscrolled || |
1039 | if (view_start == nsaved || |
1041 | view_start == 0) |
1040 | view_start == 0) |
1042 | mouse_slip_wheel_speed = 0; |
1041 | mouse_slip_wheel_speed = 0; |
1043 | |
1042 | |
1044 | refresh_type |= SMOOTH_REFRESH; |
1043 | refresh_type |= SMOOTH_REFRESH; |
1045 | want_refresh = 1; |
1044 | want_refresh = 1; |
… | |
… | |
3352 | |
3351 | |
3353 | case CSI_SD: /* 8.3.114: (1) SCROLL DOWN */ |
3352 | case CSI_SD: /* 8.3.114: (1) SCROLL DOWN */ |
3354 | arg[0] = -arg[0]; |
3353 | arg[0] = -arg[0]; |
3355 | /* FALLTHROUGH */ |
3354 | /* FALLTHROUGH */ |
3356 | case CSI_SU: /* 8.3.148: (1) SCROLL UP */ |
3355 | case CSI_SU: /* 8.3.148: (1) SCROLL UP */ |
3357 | scr_scroll_text (screen.tscroll, screen.bscroll, arg[0], 0); |
3356 | scr_scroll_text (screen.tscroll, screen.bscroll, arg[0]); |
3358 | break; |
3357 | break; |
3359 | |
3358 | |
3360 | case CSI_DA: /* 8.3.24: (0) DEVICE ATTRIBUTES */ |
3359 | case CSI_DA: /* 8.3.24: (0) DEVICE ATTRIBUTES */ |
3361 | tt_write ((const unsigned char *)VT100_ANS, |
3360 | tt_write ((const unsigned char *)VT100_ANS, |
3362 | (unsigned int) (sizeof (VT100_ANS) - 1)); |
3361 | (unsigned int) (sizeof (VT100_ANS) - 1)); |