aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cmdline.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2024-08-28 20:52:03 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2024-09-09 18:17:03 +0200
commitc71ed30cf0c554d288edfe87842082cc9ec393a7 (patch)
tree8ae23bf7786793ad3450942f96055ff853d448ac /src/cmdline.h
parentf79a6f65acde9753ea65887e0e0d4bc7f76ff52b (diff)
downloadsciteco-c71ed30cf0c554d288edfe87842082cc9ec393a7.tar.gz
implemented Unicode support for rubin/rubout and a number of commands (WIP) (refs #5)
certain test cases are still way too slow: 10000<@I/X^J/> 20000<R> or 10000<@I/X^J/> 20000<%a-1J> SCI_ALLOCATELINECHARACTERINDEX does not help much here. It probably speeds up only SCI_LINEFROMINDEXPOSITION and SCI_INDEXPOSITIONFROMLINE.
Diffstat (limited to 'src/cmdline.h')
-rw-r--r--src/cmdline.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/cmdline.h b/src/cmdline.h
index 2cd7946..7f40b5f 100644
--- a/src/cmdline.h
+++ b/src/cmdline.h
@@ -62,12 +62,7 @@ extern teco_cmdline_t teco_cmdline;
gboolean teco_cmdline_insert(const gchar *data, gsize len, GError **error);
-static inline gboolean
-teco_cmdline_rubin(GError **error)
-{
- return teco_cmdline.effective_len >= teco_cmdline.str.len ||
- teco_cmdline_insert(teco_cmdline.str.data + teco_cmdline.effective_len, 1, error);
-}
+gboolean teco_cmdline_rubin(GError **error);
gboolean teco_cmdline_keypress_c(gchar key, GError **error);
@@ -82,12 +77,7 @@ teco_cmdline_keypress(const gchar *str, gsize len, GError **error)
gboolean teco_cmdline_fnmacro(const gchar *name, GError **error);
-static inline void
-teco_cmdline_rubout(void)
-{
- if (teco_cmdline.effective_len)
- teco_undo_pop(--teco_cmdline.effective_len);
-}
+void teco_cmdline_rubout(void);
extern gboolean teco_quit_requested;