From 2118c10837f835c9c84df26e8f11870438c00c50 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Fri, 20 Jun 2003 18:09:48 +0000 Subject: [PATCH] (in_display_vector_p): New function. --- src/xdisp.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index fff45ae4335..473b5973fb6 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -1,5 +1,5 @@ /* Display generation from window structure and buffer text. - Copyright (C) 1985, 86, 87, 88, 93, 94, 95, 97, 98, 99, 2000, 2001, 2002 + Copyright (C) 1985,86,87,88,93,94,95,97,98,99, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -5577,6 +5577,16 @@ move_it_by_lines (it, dvpos, need_y_p) } } +/* Return 1 if IT points into the middle of a display vector. */ + +int +in_display_vector_p (it) + struct it *it; +{ + return (it->method == next_element_from_display_vector + && it->current.dpvec_index > 0 + && it->dpvec + it->current.dpvec_index != it->dpend); +} /*********************************************************************** -- 2.39.5