Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/tests/test/command_line.rs')
-rw-r--r--helix-term/tests/test/command_line.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/helix-term/tests/test/command_line.rs b/helix-term/tests/test/command_line.rs
index d9a01669..0e227006 100644
--- a/helix-term/tests/test/command_line.rs
+++ b/helix-term/tests/test/command_line.rs
@@ -90,3 +90,14 @@ async fn shell_expansion() -> anyhow::Result<()> {
Ok(())
}
+
+#[tokio::test(flavor = "multi_thread")]
+async fn percent_escaping() -> anyhow::Result<()> {
+ test_statusline(
+ r#":sh echo hello 10%"#,
+ "'run-shell-command': '%' was not properly escaped. Please use '%%'",
+ Severity::Error,
+ )
+ .await?;
+ Ok(())
+}