On 12/09/2010 09:30 AM, Jean-Marc Lasgouttes wrote:
Le 9 déc. 2010 à 09:19, Abdelrazak Younes a écrit :

Now that we are on it, might be more appropriate anyway. Undo is (I
think) a user interface component and BufferView is responsible for
how the Buffer is presented to the user and how the user interacts
with the Buffer.

You have two components to the Undo:

1) the content focused: this is the undo stack, it must be dependent on the 
buffer, independent of the view.
Just a question: should it really be independent of the view? If I edit
two parts of a text, presumably I want two undo stacks.

I think yes: an undo should be atomic. Presumably you can not do two changes at the same time on one given buffer. So no, only one stack.

Abdel.


Reply via email to