OSDN Git Service

Last Line of Files vs "Ghost Lines" (4)
authorGreyMerlin <GreyMerlin@gmail.com>
Fri, 3 Aug 2018 19:13:54 +0000 (12:13 -0700)
committerGreyMerlin <GreyMerlin@gmail.com>
Fri, 3 Aug 2018 19:13:54 +0000 (12:13 -0700)
commitee6ee13a1b57222a89dafd1198241437cefc2015
tree658ab3e8ef647c6ec09c5494959cc9f5b3acbb40
parent0d0c8bf3b35d588f4a0fed9c7f938f7449fd034e
Last Line of Files vs "Ghost Lines" (4)

Re-implements the Undo handling for the last line (see my final comments
in the earlier "...Ghost Lines (2)" commit) to move the "Ghost"
sensitive parts out of the `CCrystalTextBuffer` class and into the
`GhostTextBuffer` class.

A new virtual procedure `UndoInsert()`now exists in both
`CCrystalTextBuffer` and `GhostTextBuffer`, with the WinMerge and Ghost
specific checking in the `GhostTextBuffer`class, and the basic deletion
code in the `CCrystalTextBuffer`class.

Also, modify the `VERIFY()`testing in the Undo paths to correctly
interface with the general failure mechanism within `Undo()`
Externals/crystaledit/editlib/ccrystaltextbuffer.cpp
Externals/crystaledit/editlib/ccrystaltextbuffer.h
Src/GhostTextBuffer.cpp
Src/GhostTextBuffer.h