# HG changeset patch # User Andreas Schwab # Date 1045527437 0 # Node ID 09b19af84a812ba6ed05fcfa3b3b2fbd88a984b8 # Parent c3d892afbca5edf51671bcd818adf159ff959850 (in_display_vector_p): New function. diff -r c3d892afbca5 -r 09b19af84a81 src/xdisp.c --- a/src/xdisp.c Tue Feb 18 00:16:03 2003 +0000 +++ b/src/xdisp.c Tue Feb 18 00:17:17 2003 +0000 @@ -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 @@ } } +/* 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); +} /***********************************************************************