mirror of
https://github.com/paxed/dgamelaunch.git
synced 2025-04-08 17:06:19 +02:00
Allow repeat prefix for move paragraph forward/backward command
This commit is contained in:
parent
3c17a9b1bf
commit
389c137df9
20
virus.c
20
virus.c
@ -1149,16 +1149,20 @@ key_cmd_mode:
|
||||
psbs ("%s", msg);
|
||||
break;
|
||||
case '{': // {- move backward paragraph
|
||||
q = char_search (dot, (Byte *) "\n\n", BACK, FULL);
|
||||
if (q != NULL) { // found blank line
|
||||
dot = next_line (q); // move to next blank line
|
||||
}
|
||||
do {
|
||||
q = char_search(dot, (Byte *) "\n\n", BACK, FULL);
|
||||
if (q != NULL) { // found blank line
|
||||
dot = next_line(q); // move to next blank line
|
||||
}
|
||||
} while (cmdcnt-- > 1);
|
||||
break;
|
||||
case '}': // }- move forward paragraph
|
||||
q = char_search (dot, (Byte *) "\n\n", FORWARD, FULL);
|
||||
if (q != NULL) { // found blank line
|
||||
dot = next_line (q); // move to next blank line
|
||||
}
|
||||
do {
|
||||
q = char_search(dot, (Byte *) "\n\n", FORWARD, FULL);
|
||||
if (q != NULL) { // found blank line
|
||||
dot = next_line(q); // move to next blank line
|
||||
}
|
||||
} while (cmdcnt-- > 1);
|
||||
break;
|
||||
#endif /* BB_FEATURE_VI_SEARCH */
|
||||
case '0': // 0- goto begining of line
|
||||
|
Loading…
x
Reference in New Issue
Block a user