mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fix clipboard_linux.v
This commit is contained in:
@@ -300,6 +300,7 @@ fn (cb mut Clipboard) start_listener(){
|
||||
}
|
||||
}
|
||||
C.PropertyNotify {}
|
||||
else {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -190,6 +190,7 @@ fn (r Readline) analyse(c int) Action {
|
||||
|
||||
fn (r Readline) analyse_control() Action {
|
||||
c := r.read_char()
|
||||
|
||||
match c {
|
||||
`[` {
|
||||
sequence := r.read_char()
|
||||
@@ -204,7 +205,35 @@ fn (r Readline) analyse_control() Action {
|
||||
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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user