aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/view.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2024-08-31 23:01:42 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2024-09-09 18:22:21 +0200
commitb146ccd7a7513b910affd86848c704d600df3090 (patch)
tree5c9e2f65d43aee57c8fc0e9e2616754781857276 /src/view.h
parentdb5ab171995bded490c65ed299c9ff066c41c413 (diff)
downloadsciteco-b146ccd7a7513b910affd86848c704d600df3090.tar.gz
avoid redunancies between teco_qreg_plain_get_character() and teco_state_start_get() (refs #5)
Diffstat (limited to 'src/view.h')
-rw-r--r--src/view.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/view.h b/src/view.h
index a395dcf..882a33c 100644
--- a/src/view.h
+++ b/src/view.h
@@ -74,3 +74,5 @@ void teco_view_free(teco_view_t *ctx);
gssize teco_view_glyphs2bytes(teco_view_t *ctx, teco_int_t pos);
teco_int_t teco_view_bytes2glyphs(teco_view_t *ctx, gsize pos);
gssize teco_view_glyphs2bytes_relative(teco_view_t *ctx, gsize pos, teco_int_t n);
+
+teco_int_t teco_view_get_character(teco_view_t *ctx, gsize pos, gsize len);