aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/error.h
diff options
context:
space:
mode:
authorRobin Haberkorn <rhaberkorn@fmsbw.de>2026-07-26 02:36:20 +0200
committerRobin Haberkorn <rhaberkorn@fmsbw.de>2026-07-26 12:28:34 +0200
commit68364bd3637b6944fa1f63a00dae5caf375afab9 (patch)
tree1a6ff54138f6229cbea51a8999df297b9ce90f00 /src/error.h
parenta07512149088ec8bb47d16ed8fbbfdefd4745626 (diff)
conditionals can be terminated with F" now in addition to a single-quote (')
This is useful when writing small macros directly on the command-line as in `sciteco --eval`. If you use double quoted shell strings, too many characters have to be escaped. If you use single-quotes, though, embedding the conditional end (') is annoying -- it would have to be written as '\''.
Diffstat (limited to 'src/error.h')
-rw-r--r--src/error.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/error.h b/src/error.h
index 3d4334f..a848116 100644
--- a/src/error.h
+++ b/src/error.h
@@ -80,10 +80,10 @@ teco_error_syntax_set(GError **error, gunichar chr)
}
static inline void
-teco_error_modifier_set(GError **error, gchar chr)
+teco_error_modifier_set(GError **error, const gchar *cmd)
{
g_set_error(error, TECO_ERROR, TECO_ERROR_MODIFIER,
- "Unexpected modifier on <%c>", chr);
+ "Unexpected modifier on <%s>", cmd);
}
static inline void