diff options
Diffstat (limited to 'src/glibext/gbufferline.c')
-rw-r--r-- | src/glibext/gbufferline.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/glibext/gbufferline.c b/src/glibext/gbufferline.c index 7e518cc..0593748 100644 --- a/src/glibext/gbufferline.c +++ b/src/glibext/gbufferline.c @@ -1549,6 +1549,7 @@ GBufferSegment *g_buffer_line_get_segment_at(const GBufferLine *line, const line result = get_segment_at(&line->columns[i], offset, dir, &consumed); *base += consumed; + } /* La position fournie tombe dans une colonne vide ! */ @@ -1593,13 +1594,18 @@ GBufferSegment *g_buffer_line_get_segment_at(const GBufferLine *line, const line else /* if (i == BLC_COUNT) */ { - if (force && last != BLC_COUNT) + if (force) { use_right_border: - result = get_last_segment(&line->columns[last]); - *base = last_base; - *offset = get_column_width(&line->columns[last]); + if (last != BLC_COUNT) + { + result = get_last_segment(&line->columns[last]); + *base = last_base; + *offset = get_column_width(&line->columns[last]); + } + else + result = NULL; } else |