Skip to content

Commit

Permalink
Unsafe paste returns true or false
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Dec 9, 2024
1 parent a5e7ada commit a36dbe9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Widgets/TerminalWidget.vala
Original file line number Diff line number Diff line change
Expand Up @@ -538,10 +538,9 @@ namespace Terminal {


string? warn_text;
Utils.is_safe_paste (text, out warn_text);

// No user interaction for safe commands
if (warn_text == null) {
if (Utils.is_safe_paste (text, out warn_text)) {
feed_child (text.data);
return;
}
Expand Down

0 comments on commit a36dbe9

Please sign in to comment.