diff options
| author | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2025-11-07 21:39:12 +0100 |
|---|---|---|
| committer | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2025-11-08 13:00:47 +0100 |
| commit | 4e6ddd6c329d56055a732c6344df019f0d997aaf (patch) | |
| tree | b426e5de13142442669981d90b07d10fc6999d89 /src/stdio-commands.c | |
| parent | 1391e9c6ea1f9bef965f96e70f4e27141abcb5cd (diff) | |
the command line macro is now managed by a Scintilla view
* Instead of rendering a teco_string_t into a Scintilla view (GTK)
and an ncurses window (Curses), it is now a Scintilla view and document
that is modified directly.
* Reduces redundancies between GTK and Curses UIs.
* It will be more efficient on very large command lines, especially on GTK.
* We can now redirect Scintilla messages to the command line view in order
to configure syntax highlighting, the margin, rubout indicator style and
scroll behavior (TODO).
* This will also simplify the configuration of multi-line command lines (TODO).
* Since INDIC_PLAIN is not supported by Scinterm, rubbed out command lines
are now styled with INDIC_STRAIGHTBOX (background color).
Diffstat (limited to 'src/stdio-commands.c')
| -rw-r--r-- | src/stdio-commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio-commands.c b/src/stdio-commands.c index 3a1b320..565f442 100644 --- a/src/stdio-commands.c +++ b/src/stdio-commands.c @@ -38,7 +38,7 @@ static inline gboolean teco_cmdline_is_executing(teco_machine_main_t *ctx) { return ctx == &teco_cmdline.machine && - ctx->macro_pc == teco_cmdline.effective_len; + ctx->macro_pc == teco_cmdline_ssm(SCI_GETCURRENTPOS, 0, 0); } static gboolean is_executing = FALSE; |
