fix: paste command
This commit is contained in:
parent
73b7031693
commit
0f509df2d4
2 changed files with 3 additions and 8 deletions
|
@ -369,7 +369,6 @@ const BindingSet = struct {
|
|||
var keypress: input.Key = 0;
|
||||
var egc: input.Key = 0;
|
||||
var modifiers: input.Mods = 0;
|
||||
var text: []const u8 = "";
|
||||
|
||||
if (try m.match(.{
|
||||
"I",
|
||||
|
@ -388,10 +387,6 @@ const BindingSet = struct {
|
|||
}
|
||||
} else if (try m.match(.{"F"})) {
|
||||
self.flush() catch |e| return tp.exit_error(e, @errorReturnTrace());
|
||||
} else if (try m.match(.{ "system_clipboard", tp.extract(&text) })) {
|
||||
self.flush() catch |e| return tp.exit_error(e, @errorReturnTrace());
|
||||
self.insert_bytes(text) catch |e| return tp.exit_error(e, @errorReturnTrace());
|
||||
self.flush() catch |e| return tp.exit_error(e, @errorReturnTrace());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue