]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph.h
LFUN_UNICODE_INSERT - unicode-insert
[lyx.git] / src / paragraph.h
index 14979602b67ec668f5ddbe3b968e1556cc8db433..fedd97c3c3e0da1f50d99733d30ece73e4100da5 100644 (file)
@@ -198,6 +198,10 @@ public:
 
        /// is there a change within the given range ?
        bool isChanged(pos_type start, pos_type end) const;
+       /// is there an insertion at the given pos ?
+       bool isInserted(pos_type pos) const {
+               return lookupChange(pos).type == Change::INSERTED;
+       }
        /// is there a deletion at the given pos ?
        bool isDeleted(pos_type pos) const {
                return lookupChange(pos).type == Change::DELETED;