aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core-commands.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-06-08 20:54:29 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-06-08 20:54:29 +0200
commitaaa1d51a4c85fcc627e88ef7cf5292d9c5f5f840 (patch)
tree34da0d4a3218c622dbd34816607a93e2227157ac /src/core-commands.h
parent36448a42917560ce00c13c1ad4d56f46c3614937 (diff)
downloadsciteco-aaa1d51a4c85fcc627e88ef7cf5292d9c5f5f840.tar.gz
^S/^Y calculates the glyph offsets earlier
* Previously, deleting text after a text match or insertion could result in wrong ^S/^Y results. In particular, the amount of characters deleted by <FD> at the end of a buffer couldn't be queried. * This also fixes the M#rf (reflow paragraph) macro.
Diffstat (limited to 'src/core-commands.h')
-rw-r--r--src/core-commands.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core-commands.h b/src/core-commands.h
index 432ec38..9f62da8 100644
--- a/src/core-commands.h
+++ b/src/core-commands.h
@@ -44,8 +44,8 @@ TECO_DECLARE_STATE(teco_state_ctlc_control);
TECO_DECLARE_STATE(teco_state_ecommand);
typedef struct {
- gsize from; /*< start position in bytes */
- gsize to; /*< end position in bytes */
+ teco_int_t from; /*< start position in glyphs */
+ teco_int_t to; /*< end position in glyphs */
} teco_range_t;
extern guint teco_ranges_count;