From f9ca11407215715d061a12fbf4a0e12cd70f7b87 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sat, 25 May 2013 12:01:25 +0300 Subject: [PATCH] Minor code improvement --- virus.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/virus.c b/virus.c index 0d81d4b..727d894 100644 --- a/virus.c +++ b/virus.c @@ -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; -- 2.47.3