aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/view.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/view.c')
-rw-r--r--src/view.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/view.c b/src/view.c
index df09aac..71d74e2 100644
--- a/src/view.c
+++ b/src/view.c
@@ -612,6 +612,7 @@ teco_view_glyphs2bytes_relative(teco_view_t *ctx, gsize pos, teco_int_t n)
{
if (!n)
return pos;
+ /* NOTE: Does not work for n == G_MININT64. */
if (ABS(n) > TECO_RELATIVE_LIMIT)
return teco_view_glyphs2bytes(ctx, teco_view_bytes2glyphs(ctx, pos) + n);