version 1.248, 2020/03/11 18:46:42 |
version 1.249, 2020/03/12 13:19:20 |
|
|
} lineflag; /* line selection mode */ |
} lineflag; /* line selection mode */ |
int rectflag; /* in rectangle copy mode? */ |
int rectflag; /* in rectangle copy mode? */ |
int scroll_exit; /* exit on scroll to end? */ |
int scroll_exit; /* exit on scroll to end? */ |
|
int hide_position; /* hide position marker */ |
|
|
enum { |
enum { |
SEL_CHAR, /* select one char at a time */ |
SEL_CHAR, /* select one char at a time */ |
|
|
data->cy = data->backing->cy; |
data->cy = data->backing->cy; |
|
|
data->scroll_exit = args_has(args, 'e'); |
data->scroll_exit = args_has(args, 'e'); |
|
data->hide_position = args_has(args, 'H'); |
|
|
data->screen.cx = data->cx; |
data->screen.cx = data->cx; |
data->screen.cy = data->cy; |
data->screen.cy = data->cy; |
|
|
style_apply(&gc, oo, "mode-style"); |
style_apply(&gc, oo, "mode-style"); |
gc.flags |= GRID_FLAG_NOPALETTE; |
gc.flags |= GRID_FLAG_NOPALETTE; |
|
|
if (py == 0 && s->rupper < s->rlower) { |
if (py == 0 && s->rupper < s->rlower && !data->hide_position) { |
if (data->searchmark == NULL) { |
if (data->searchmark == NULL) { |
size = xsnprintf(hdr, sizeof hdr, |
size = xsnprintf(hdr, sizeof hdr, |
"[%u/%u]", data->oy, screen_hsize(data->backing)); |
"[%u/%u]", data->oy, screen_hsize(data->backing)); |