Browse Source

Don't show help on PgUp and PgDown

Serj Kalichev 3 years ago
parent
commit
9c8f1b8b69
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tinyrl/tinyrl.c

+ 2 - 1
tinyrl/tinyrl.c

@@ -572,6 +572,7 @@ bool_t tinyrl_get_ins_flag(tinyrl_t *this)
  * Ctrl+_ (Control_underscore 0x1f KEY_US) execute external function for this
  * key here.
  */
+/*
 static bool_t tinyrl_key_help(tinyrl_t *this, int key)
 {
 	if (!this || !this->handlers[KEY_US])
@@ -581,6 +582,7 @@ static bool_t tinyrl_key_help(tinyrl_t *this, int key)
 
 	return this->handlers[KEY_US](this, key);
 }
+*/
 
 /*-------------------------------------------------------- */
 static bool_t tinyrl_escape_seq(tinyrl_t *this, const char *esc_seq)
@@ -616,7 +618,6 @@ static bool_t tinyrl_escape_seq(tinyrl_t *this, const char *esc_seq)
 	case tinyrl_vt100_PGDOWN:
 	case tinyrl_vt100_PGUP:
 	case tinyrl_vt100_UNKNOWN:
-		result = tinyrl_key_help(this, key);
 		break;
 	}