… | |
… | |
334 | scr_scroll_text (0, (int)nrow - 1, -k, 1); |
334 | scr_scroll_text (0, (int)nrow - 1, -k, 1); |
335 | screen.cur.row += k; |
335 | screen.cur.row += k; |
336 | screen.s_cur.row += k; |
336 | screen.s_cur.row += k; |
337 | TermWin.nscrolled -= k; |
337 | TermWin.nscrolled -= k; |
338 | } |
338 | } |
|
|
339 | |
339 | #ifdef DEBUG_STRICT |
340 | #ifdef DEBUG_STRICT |
340 | assert (screen.cur.row < TermWin.nrow); |
341 | assert (screen.cur.row < TermWin.nrow); |
341 | #else /* drive with your eyes closed */ |
342 | #else /* drive with your eyes closed */ |
342 | |
|
|
343 | MIN_IT (screen.cur.row, nrow - 1); |
343 | MIN_IT (screen.cur.row, nrow - 1); |
344 | #endif |
344 | #endif |
345 | TermWin.ncol = ncol; // save b/c scr_blank_screen_mem uses this |
345 | TermWin.ncol = ncol; // save b/c scr_blank_screen_mem uses this |
346 | } |
346 | } |
347 | |
347 | |
… | |
… | |
3409 | selection_delimit_word (DN, &selection.end, &selection.end); |
3409 | selection_delimit_word (DN, &selection.end, &selection.end); |
3410 | } |
3410 | } |
3411 | else if (selection.clicks == 3) |
3411 | else if (selection.clicks == 3) |
3412 | { |
3412 | { |
3413 | #if ENABLE_FRILLS |
3413 | #if ENABLE_FRILLS |
3414 | if ((options & Opt_tripleclickwords)) |
3414 | if (options & Opt_tripleclickwords) |
3415 | { |
3415 | { |
3416 | int end_row; |
3416 | int end_row; |
3417 | |
3417 | |
3418 | selection_delimit_word (UP, &selection.beg, &selection.beg); |
3418 | selection_delimit_word (UP, &selection.beg, &selection.beg); |
3419 | end_row = screen.tlen[selection.mark.row + TermWin.saveLines]; |
3419 | end_row = screen.tlen[selection.mark.row + TermWin.saveLines]; |
… | |
… | |
3437 | if (ROWCOL_IS_AFTER (selection.mark, selection.beg)) |
3437 | if (ROWCOL_IS_AFTER (selection.mark, selection.beg)) |
3438 | selection.mark.col++; |
3438 | selection.mark.col++; |
3439 | |
3439 | |
3440 | selection.beg.col = 0; |
3440 | selection.beg.col = 0; |
3441 | selection.end.col = ncol; |
3441 | selection.end.col = ncol; |
|
|
3442 | |
|
|
3443 | // select a complete logical line |
|
|
3444 | while (selection.beg.row > -TermWin.saveLines |
|
|
3445 | && screen.tlen[selection.beg.row - 1 + TermWin.saveLines] == -1) |
|
|
3446 | selection.beg.row--; |
|
|
3447 | |
|
|
3448 | while (selection.end.row < TermWin.nrow |
|
|
3449 | && screen.tlen[selection.end.row + TermWin.saveLines] == -1) |
|
|
3450 | selection.end.row++; |
3442 | } |
3451 | } |
3443 | } |
3452 | } |
3444 | |
3453 | |
3445 | if (button3 && buttonpress) |
3454 | if (button3 && buttonpress) |
3446 | { /* mark may need to be changed */ |
3455 | { /* mark may need to be changed */ |