Minor code improvement

This commit is contained in:
Pasi Kallinen 2013-05-25 12:01:25 +03:00
parent ffc8d8bc1c
commit f9ca114072
1 changed files with 1 additions and 3 deletions

View File

@ -1393,9 +1393,7 @@ key_cmd_mode:
break;
case 'b': // b- back a word
case 'e': // e- end of word
dir = FORWARD;
if (c == 'b')
dir = BACK;
dir = (c == 'b') ? BACK : FORWARD;
do {
if ((dot + dir) < text || (dot + dir) > end - 1)
break;