diff options
author | pgen <p.gen.progs@gmail.com> | 2021-08-17 22:29:31 +0200 |
---|---|---|
committer | pgen <p.gen.progs@gmail.com> | 2021-08-17 23:49:09 +0200 |
commit | bad818a726622c764d34bc24bdffc8978f3b56e2 (patch) | |
tree | 2fb78d25c65b4e54a143ac334bbf04707c792a9e | |
parent | f712389281847df0e9f820327acc708b6df17fc4 (diff) |
Simplify the code
-rw-r--r-- | smenu.c | 24 |
1 files changed, 8 insertions, 16 deletions
@@ -10435,8 +10435,7 @@ main(int argc, char * argv[]) ksol: /* Go to the start of the line. */ /* """""""""""""""""""""""""""" */ - if (search_mode != NONE) - search_mode = NONE; + search_mode = NONE; /* Fall through. */ /* """"""""""""" */ @@ -10464,8 +10463,7 @@ main(int argc, char * argv[]) kl: /* Cursor Left key has been pressed. */ /* """"""""""""""""""""""""""""""""" */ - if (search_mode != NONE) - search_mode = NONE; + search_mode = NONE; /* Fall through. */ /* """"""""""""" */ @@ -10482,8 +10480,7 @@ main(int argc, char * argv[]) keol: /* Go to the end of the line. */ /* """""""""""""""""""""""""" */ - if (search_mode != NONE) - search_mode = NONE; + search_mode = NONE; /* Fall through. */ /* """"""""""""" */ @@ -10513,8 +10510,7 @@ main(int argc, char * argv[]) kr: /* Right key has been pressed. */ /* """"""""""""""""""""""""""" */ - if (search_mode != NONE) - search_mode = NONE; + search_mode = NONE; /* Fall through. */ /* """"""""""""" */ @@ -10545,8 +10541,7 @@ main(int argc, char * argv[]) ku: /* Cursor Up key has been pressed. */ /* """"""""""""""""""""""""""""""" */ - if (search_mode != NONE) - search_mode = NONE; + search_mode = NONE; /* Fall through. */ /* """"""""""""" */ @@ -10565,8 +10560,7 @@ main(int argc, char * argv[]) /* """""""""""""""""""""""""""""""" */ current = 0; - if (search_mode != NONE) - search_mode = NONE; + search_mode = NONE; /* Find the first selectable word. */ /* """"""""""""""""""""""""""""""" */ @@ -10615,8 +10609,7 @@ main(int argc, char * argv[]) kd: /* Cursor Down key has been pressed. */ /* """"""""""""""""""""""""""""""""" */ - if (search_mode != NONE) - search_mode = NONE; + search_mode = NONE; /* Fall through. */ /* """"""""""""" */ @@ -10635,8 +10628,7 @@ main(int argc, char * argv[]) /* """"""""""""""""""""""""""""""" */ current = count - 1; - if (search_mode != NONE) - search_mode = NONE; + search_mode = NONE; /* Find the first selectable word. */ /* """"""""""""""""""""""""""""""" */ |