Nicely spotted... I had completely forgotten about this case. -- JP On Mon, Jul 7, 2008 at 12:49 AM, Corey O'Connor <[EMAIL PROTECTED]> wrote: > > Sun Jul 6 18:47:17 EDT 2008 [EMAIL PROTECTED] > * Fixing a bug with changing the buffer a window views. > > When a window was changed to view a new buffer the insMark, toMark, fromMark > will either: > 1. Not be the correct marks. Just whatever mark had the same index. > 2. Not exist in the mark map of the buffer. Resulting in getMarkPointBI for > all the windows marks > to return the position of the staticInsMark. > Either case resulted in strange behavior. > > This patch assures the above errors do not occur. This results in incorrect > behavior (according to > Vim): The following will not be correct: > window views position X in buffer B0 > window is switched to view buffer B1 > window is switched to view buffer B0 > window should be viewing the same region as in the beginning. > > > M ./Yi/Buffer.hs +1 > M ./Yi/Editor.hs -3 +18 > > View patch online: > > > http://code.haskell.org/yi/_darcs/patches/20080706224717-f0a0d-2be63fa3e3ee458635b15810c01e82f05fccb708.gz > > > >
--~--~---------~--~----~------------~-------~--~----~ Yi development mailing list [email protected] http://groups.google.com/group/yi-devel -~----------~----~----~----~------~----~------~--~---
