summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2021-08-17 22:29:31 +0200
committerpgen <p.gen.progs@gmail.com>2021-08-17 23:49:09 +0200
commitbad818a726622c764d34bc24bdffc8978f3b56e2 (patch)
tree2fb78d25c65b4e54a143ac334bbf04707c792a9e
parentf712389281847df0e9f820327acc708b6df17fc4 (diff)
Simplify the code
-rw-r--r--smenu.c24
1 files changed, 8 insertions, 16 deletions
diff --git a/smenu.c b/smenu.c
index 8e2f3a8..d55039c 100644
--- a/smenu.c
+++ b/smenu.c
@@ -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. */
/* """"""""""""""""""""""""""""""" */