diff --git a/vlib/clipboard/clipboard_linux.v b/vlib/clipboard/clipboard_linux.v index b61120ca8b..78ebe31a47 100644 --- a/vlib/clipboard/clipboard_linux.v +++ b/vlib/clipboard/clipboard_linux.v @@ -300,6 +300,7 @@ fn (cb mut Clipboard) start_listener(){ } } C.PropertyNotify {} + else {} } } } diff --git a/vlib/readline/readline_linux.v b/vlib/readline/readline_linux.v index bb13902059..9d0e291200 100644 --- a/vlib/readline/readline_linux.v +++ b/vlib/readline/readline_linux.v @@ -190,21 +190,50 @@ fn (r Readline) analyse(c int) Action { fn (r Readline) analyse_control() Action { c := r.read_char() - match c { - `[` { - sequence := r.read_char() - match sequence { - `C` { return .move_cursor_right } - `D` { return .move_cursor_left } - `B` { return .history_next } - `A` { return .history_previous } - `1` { return r.analyse_extended_control() } - `2` { return r.analyse_extended_control_no_eat(sequence) } - `3` { return r.analyse_extended_control_no_eat(sequence) } - else {} - } - } - } + +match c { + `[` { + sequence := r.read_char() + match sequence { + `C` { return .move_cursor_right } + `D` { return .move_cursor_left } + `B` { return .history_next } + `A` { return .history_previous } + `1` { return r.analyse_extended_control() } + `2` { return r.analyse_extended_control_no_eat(sequence) } + `3` { return r.analyse_extended_control_no_eat(sequence) } + else {} + } + } + else { } +} + + +/* +//TODO +match c { + case `[`: + sequence := r.read_char() + match sequence { + case `C`: return .move_cursor_right + case `D`: return .move_cursor_left + case `B`: return .history_next + case `A`: return .history_previous + case `1`: return r.analyse_extended_control() + case `2`: return r.analyse_extended_control_no_eat(sequence) + case `3`: return r.analyse_extended_control_no_eat(sequence) + case `9`: + foo() + bar() + else: + } + else: +} +*/ + + + + return .nothing }