From 3824b1a682ced02fe6d634e763308b1614cbb987 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Tue, 18 Feb 2003 00:17:17 +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 5d3602366da..5da63f2f407 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. @@ -5649,6 +5649,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.2