mirror of
https://github.com/rkd77/elinks.git
synced 2025-04-18 00:47:36 -04:00
Trim some trailing whitespaces.
This commit is contained in:
parent
0b58b99d30
commit
e86e1d0fa3
@ -289,7 +289,7 @@ select_button_by_key(struct dialog_data *dlg_data)
|
|||||||
#ifdef CONFIG_UTF8
|
#ifdef CONFIG_UTF8
|
||||||
int codepage;
|
int codepage;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct widget_data *widget_data;
|
struct widget_data *widget_data;
|
||||||
struct term_event *ev = dlg_data->term_event;
|
struct term_event *ev = dlg_data->term_event;
|
||||||
|
|
||||||
|
@ -186,7 +186,7 @@ check_hotkeys_common(struct menu *menu, term_event_char_T hotkey, struct termina
|
|||||||
found = (unicode_fold_label_case(items_hotkey) == key);
|
found = (unicode_fold_label_case(items_hotkey) == key);
|
||||||
#else
|
#else
|
||||||
found = (toupper(*text) == key);
|
found = (toupper(*text) == key);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (found) {
|
if (found) {
|
||||||
menu->selected = i;
|
menu->selected = i;
|
||||||
|
@ -46,7 +46,7 @@ struct table_entry {
|
|||||||
struct codepage_desc {
|
struct codepage_desc {
|
||||||
unsigned char *name;
|
unsigned char *name;
|
||||||
unsigned char *const *aliases;
|
unsigned char *const *aliases;
|
||||||
|
|
||||||
/* The Unicode mappings of codepage bytes 0x80...0xFF.
|
/* The Unicode mappings of codepage bytes 0x80...0xFF.
|
||||||
* (0x00...0x7F are assumed to be ASCII in all codepages.)
|
* (0x00...0x7F are assumed to be ASCII in all codepages.)
|
||||||
* Because all current values fit in 16 bits, we store them as
|
* Because all current values fit in 16 bits, we store them as
|
||||||
@ -56,7 +56,7 @@ struct codepage_desc {
|
|||||||
* appropriate. (U+FFFF is reserved and will never be
|
* appropriate. (U+FFFF is reserved and will never be
|
||||||
* assigned as a character.) */
|
* assigned as a character.) */
|
||||||
const uint16_t *highhalf;
|
const uint16_t *highhalf;
|
||||||
|
|
||||||
/* If some byte in the codepage corresponds to multiple Unicode
|
/* If some byte in the codepage corresponds to multiple Unicode
|
||||||
* characters, then the preferred character is in @highhalf
|
* characters, then the preferred character is in @highhalf
|
||||||
* above, and the rest are listed here in @extra. This table
|
* above, and the rest are listed here in @extra. This table
|
||||||
@ -661,7 +661,7 @@ static unicode_val_T
|
|||||||
cp2u_shared(const struct codepage_desc *from, unsigned char c)
|
cp2u_shared(const struct codepage_desc *from, unsigned char c)
|
||||||
{
|
{
|
||||||
unicode_val_T u = from->highhalf[c - 0x80];
|
unicode_val_T u = from->highhalf[c - 0x80];
|
||||||
|
|
||||||
if (u == 0xFFFF) u = UCS_REPLACEMENT_CHARACTER;
|
if (u == 0xFFFF) u = UCS_REPLACEMENT_CHARACTER;
|
||||||
return u;
|
return u;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user