sigmaSd / IRust

Cross Platform Rust Repl

Home Page:https://crates.io/crates/irust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make Up/Down arrow keys move cursor in multilnes input instead of cycling history

sigmaSd opened this issue · comments

pseudo code:

handle_key_up()
 if cursor.is_at_first_line_of_input():
  cycle_history_up()
 else:
  move_cursor_up()


handle_key_down()
 if cursor.is_at_last_line_of_input():
  cycle_history_down()
 else:
  move_cursor_down()