mirror of
https://github.com/paxed/dgamelaunch.git
synced 2025-07-30 00:55:37 +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);
|
psbs ("%s", msg);
|
||||||
break;
|
break;
|
||||||
case '{': // {- move backward paragraph
|
case '{': // {- move backward paragraph
|
||||||
q = char_search (dot, (Byte *) "\n\n", BACK, FULL);
|
do {
|
||||||
if (q != NULL) { // found blank line
|
q = char_search(dot, (Byte *) "\n\n", BACK, FULL);
|
||||||
dot = next_line (q); // move to next blank line
|
if (q != NULL) { // found blank line
|
||||||
}
|
dot = next_line(q); // move to next blank line
|
||||||
|
}
|
||||||
|
} while (cmdcnt-- > 1);
|
||||||
break;
|
break;
|
||||||
case '}': // }- move forward paragraph
|
case '}': // }- move forward paragraph
|
||||||
q = char_search (dot, (Byte *) "\n\n", FORWARD, FULL);
|
do {
|
||||||
if (q != NULL) { // found blank line
|
q = char_search(dot, (Byte *) "\n\n", FORWARD, FULL);
|
||||||
dot = next_line (q); // move to next blank line
|
if (q != NULL) { // found blank line
|
||||||
}
|
dot = next_line(q); // move to next blank line
|
||||||
|
}
|
||||||
|
} while (cmdcnt-- > 1);
|
||||||
break;
|
break;
|
||||||
#endif /* BB_FEATURE_VI_SEARCH */
|
#endif /* BB_FEATURE_VI_SEARCH */
|
||||||
case '0': // 0- goto begining of line
|
case '0': // 0- goto begining of line
|
||||||
|
Loading…
x
Reference in New Issue
Block a user