version 1.58, 2010/06/05 15:49:48 |
version 1.59, 2010/06/06 19:00:13 |
|
|
if (data->inputtype == WINDOW_COPY_JUMPFORWARD |
if (data->inputtype == WINDOW_COPY_JUMPFORWARD |
|| data->inputtype == WINDOW_COPY_JUMPBACK) { |
|| data->inputtype == WINDOW_COPY_JUMPBACK) { |
/* Ignore keys with modifiers. */ |
/* Ignore keys with modifiers. */ |
if ((key & 0xff00) == 0) { |
if ((key & KEYC_MASK_MOD) == 0) { |
data->jumpchar = key; |
data->jumpchar = key; |
if (data->inputtype == WINDOW_COPY_JUMPFORWARD) { |
if (data->inputtype == WINDOW_COPY_JUMPFORWARD) { |
for (; np != 0; np--) |
for (; np != 0; np--) |
|
|
*data->inputstr = '\0'; |
*data->inputstr = '\0'; |
goto input_on; |
goto input_on; |
case MODEKEYCOPY_STARTNUMBERPREFIX: |
case MODEKEYCOPY_STARTNUMBERPREFIX: |
key &= 0xff; |
key &= KEYC_MASK_KEY; |
if (key >= '0' && key <= '9') { |
if (key >= '0' && key <= '9') { |
data->inputtype = WINDOW_COPY_NUMERICPREFIX; |
data->inputtype = WINDOW_COPY_NUMERICPREFIX; |
data->numprefix = 0; |
data->numprefix = 0; |
|
|
struct window_copy_mode_data *data = wp->modedata; |
struct window_copy_mode_data *data = wp->modedata; |
struct screen *s = &data->screen; |
struct screen *s = &data->screen; |
|
|
key &= 0xff; |
key &= KEYC_MASK_KEY; |
if (key < '0' || key > '9') |
if (key < '0' || key > '9') |
return 1; |
return 1; |
|
|