From: Andreas Schwab Date: Tue, 18 Feb 2003 00:17:17 +0000 (+0000) Subject: (in_display_vector_p): New function. X-Git-Tag: ttn-vms-21-2-B4~11156 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3824b1a682ced02fe6d634e763308b1614cbb987;p=emacs.git (in_display_vector_p): New function. --- 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); +} /***********************************************************************