mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 05:56:01 +01:00
Simplify
This commit is contained in:
parent
76bc4638b8
commit
88e7c7afe8
1 changed files with 5 additions and 10 deletions
|
@ -122,20 +122,15 @@ cmd_marks_add(girara_session_t* session, girara_list_t* argument_list)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
char* key_string = girara_list_nth(argument_list, 0);
|
const char* key_string = girara_list_nth(argument_list, 0);
|
||||||
|
|
||||||
if (key_string == NULL) {
|
if (key_string == NULL || strlen(key_string) != 1) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strlen(key_string) != 1) {
|
const char key = key_string[0];
|
||||||
return false;
|
if (((key >= 0x41 && key <= 0x5A) ||
|
||||||
}
|
(key >= 0x61 && key <= 0x7A)) == false) {
|
||||||
|
|
||||||
char key = key_string[0];
|
|
||||||
|
|
||||||
if (((key >= 0x41 && key <= 0x5A) || (key >=
|
|
||||||
0x61 && key <= 0x7A)) == false) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue