Skip to content
This repository was archived by the owner on Nov 11, 2018. It is now read-only.

Commit 30cf259

Browse files
committed
Merge remote-tracking branch 'upstream/master' into termlets
2 parents 74eb2eb + a734d5e commit 30cf259

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/FinalTerm.vala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ public class FinalTerm : Gtk.Application {
158158
"Martin Middel <[email protected]>",
159159
"Mola Pahnadayan <[email protected]>",
160160
"Adis Hamzić <[email protected]>",
161+
"Nick Ashley <[email protected]>",
161162
null };
162163
string[] artists = { "Matthieu James" + _(" (Faenza icon, modified)"), null };
163164

src/TextMenu.vala

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ public class TextMenu : Object {
3939

4040
public string text { get; set; }
4141

42+
public string escape_parameters(string s) {
43+
return s.replace("'", "'\\''");;
44+
}
45+
46+
4247
public TextMenu.load_from_file(string filename) {
4348
var menu_file = new KeyFile();
4449
try {
@@ -76,7 +81,7 @@ public class TextMenu : Object {
7681

7782
menu_item.activate.connect(() => {
7883
var placeholder_substitutes = new Gee.ArrayList<string>();
79-
placeholder_substitutes.add(text);
84+
placeholder_substitutes.add(escape_parameters(text));
8085
foreach (var command in commands) {
8186
command.execute(placeholder_substitutes);
8287
}

0 commit comments

Comments
 (0)