]> git.lyx.org Git - features.git/commitdiff
* src/lyxtext.h: the use of backspacePos0 is dangerous as it
authorMichael Schmitt <michael.schmitt@teststep.org>
Fri, 24 Nov 2006 22:26:22 +0000 (22:26 +0000)
committerMichael Schmitt <michael.schmitt@teststep.org>
Fri, 24 Nov 2006 22:26:22 +0000 (22:26 +0000)
does not honour change tracking => make it a private method;
clarify the description of backspacePos0 (it does not always
merge paragraphs)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16033 a592a061-630c-0410-9148-cb99ea01b6c8

src/lyxtext.h

index db13b054b284dd5aa3aa22cae007fb39ccf96afc..db041303289d0e98bb0c1933de48240f60e1c309 100644 (file)
@@ -231,11 +231,6 @@ public:
        bool cursorBottom(LCursor & cur);
        /// Erase character at cursor. Honour change tracking
        bool erase(LCursor & cur);
-       /** At cursor position 0, merge paragraph with the one before it.
-        * Ignore CT (this is used in \c acceptChange, \c rejectChange for
-        * physical deletion of paragraph break)
-        */
-       bool backspacePos0(LCursor & cur);
        /// Delete character before cursor. Honour CT
        bool backspace(LCursor & cur);
        // Dissolve the inset under cursor
@@ -385,6 +380,10 @@ private:
        // position. Called by deleteEmptyParagraphMechanism
        void fixCursorAfterDelete(CursorSlice & cur, CursorSlice const & where);
 
+       // At cursor position 0, try to merge the paragraph with the one before it.
+       // Ignore change tracking, i.e., physically remove the end-of-par character
+       bool backspacePos0(LCursor & cur);
+
        ///
        void deleteWordForward(LCursor & cur);
        ///