Issue 142: Cannot have multiple windows of the same buffer with
different insert positions for each window.
http://code.google.com/p/yi-editor/issues/detail?id=142
Comment #3 by coreyoconnor:
Good points on both counts. The dummy window dependent operations
appear to
complicate this issue. Moving all such operations to a form that
assures they are
read only would be nice.
I've attached an early version of a patch to resolve this. I think
there are a number
of regressions that should be fixed before this patch is committed.
Here are some notes about the current patch:
1. The single pointMark you describe above (Called the staticInsMark
in this patch)
is assigned to the per window insert mark after every runBufferFull.
This means that
the dummy window operations could have the side effect of moving the
static insert
mark if the modified FBufferData is retained.
2. AtomicChange's now optionally refer to the Mark at which they occurred.
3. GTK probably doesn't compile.
4. Using VTY the window always scrolls to keep the cursor in the center.
5. Using Vim the mini window doesn't display the command the user entered.
6. The region of text a window refers to is now done via Marks. There
was an issue
with using Points: With two windows viewing the same buffer; Window A
scrolled to a
position above B; If text was entered in A the range of characters
displayed in B was
not changed. The end effect was that characters appeared to get pushed
into the
region displayed by B. The shifting of mark positions resolved this issue.
That said the patch does appear to resolve the issue. Just not very nicely. :-P
I'm working to move the current patch to use a process closer to what
you describe.
That would simplify the implementation I think.
Attachments:
issue_142_per_window_ins_marks.dpatch 76.1 KB
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
Yi development mailing list
[email protected]
http://groups.google.com/group/yi-devel
-~----------~----~----~----~------~----~------~--~---