diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-08-31 23:01:42 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-09-09 18:22:21 +0200 |
commit | b146ccd7a7513b910affd86848c704d600df3090 (patch) | |
tree | 5c9e2f65d43aee57c8fc0e9e2616754781857276 /src/interface.h | |
parent | db5ab171995bded490c65ed299c9ff066c41c413 (diff) | |
download | sciteco-b146ccd7a7513b910affd86848c704d600df3090.tar.gz |
avoid redunancies between teco_qreg_plain_get_character() and teco_state_start_get() (refs #5)
Diffstat (limited to 'src/interface.h')
-rw-r--r-- | src/interface.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/interface.h b/src/interface.h index c975525..cbe10bd 100644 --- a/src/interface.h +++ b/src/interface.h @@ -172,6 +172,12 @@ teco_glyphs2bytes_relative(gsize pos, teco_int_t n) return teco_view_glyphs2bytes_relative(teco_interface_current_view, pos, n); } +static inline teco_int_t +teco_interface_get_character(gsize pos, gsize len) +{ + return teco_view_get_character(teco_interface_current_view, pos, len); +} + /* * The following functions are here for lack of a better place. * They could also be in sciteco.h, but only if declared as non-inline |