]> granicus.if.org Git - vim/commitdiff
updated for version 7.0224
authorBram Moolenaar <Bram@vim.org>
Tue, 14 Mar 2006 23:07:19 +0000 (23:07 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 14 Mar 2006 23:07:19 +0000 (23:07 +0000)
runtime/doc/todo.txt
runtime/doc/version7.txt
src/ui.c

index 366a1370d0bee44accb3eff0ee859a764d5f5e3e..fdd782ff588209f2ccce9409103dad6b89d327fa 100644 (file)
@@ -1,4 +1,4 @@
-*todo.txt*      For Vim version 7.0aa.  Last change: 2006 Mar 13
+*todo.txt*      For Vim version 7.0aa.  Last change: 2006 Mar 14
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -31,21 +31,14 @@ be worked on, but only if you sponsor Vim development.  See |sponsor|.
 -------------------- Known bugs and current work -----------------------
 
 -   UNDO TREE:
-    Make proper test for "g+" and "g-"
+    Make proper test for "g+" and "g-", :earlier, :later
     Verify there are no memory leaks.
-    Docs for "g+" and "g-", note in version7.txt
-    Command to jump so many seconds forward/backward?
-    Show the list of changes in a window to be able to select a version?
 
 Win32: Describe how to do debugging. (George Reilly)
 
-Mac unicode patch (Da Woon Jung):
--   Mac: Unicode input and display (Eckehard Berns)
-    Included patch from Da Woon Jung, not complete yet.
+Mac unicode patch (Da Woon Jung, Eckehard Berns):
 8   Add patch from Muraoka Taro (Mar 16) to support input method on Mac?
     New patch 2004 Jun 16
-- Add default key mappings for the command key (Alan Schmitt)
-    use http://macvim.org/OSX/files/gvimrc
 - selecting proportional font breaks display
 - UTF-8 text causes display problems.  Font replacement causes this.
 - Command-key mappings do not work. (Alan Schmitt)
index 0e745342434c776aac35e5ac3e652499aae73b11..f63518d78b0a2cb821bfa4a55c1bed3fb25cff19 100644 (file)
@@ -1,4 +1,4 @@
-*version7.txt*  For Vim version 7.0aa.  Last change: 2006 Mar 13
+*version7.txt*  For Vim version 7.0aa.  Last change: 2006 Mar 14
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -24,6 +24,7 @@ Omni completion                               |new-omni-completion|
 MzScheme interface                     |new-MzScheme|
 Printing multi-byte text               |new-print-multi-byte|
 Tab pages                              |new-tab-pages|
+Undo branches                          |new-undo-branches|
 Extended Unicode support               |new-more-unicode|
 More highlighting                      |new-more-highlighting|
 Translated manual pages                        |new-manpage-trans|
@@ -263,6 +264,28 @@ already running Vim server.
 More info here: |tabpage|
 
 
+Undo branches                                          *new-undo-branches*
+-------------
+
+Previously there was only one line of undo-redo.  If, after undoing a number
+of changes, a new change was made all the undone changes were lost.  This
+could lead to accidentally losing text.
+
+Vim now makes an undo branch in this situation.  Thus you can go back to the
+text after any change, even if they were undone.  So long as you do not run
+into 'undolevels', undo information is freed up to limit the memory use.
+
+To be able to navigate the undo branches each change is numbered sequentially.
+The commands |g-| and |:earlier| go back in time, to older changes.  The
+commands |g+| and |:later| go forward in time, to newer changes.  
+
+The changes are also timestamped.  Use ":earlier 10m" to go to the text as it
+was about ten minutes earlier.
+
+There is no graphical display of the tree with changes, navigation can be
+quite confusing.
+
+
 Extended Unicode support                               *new-more-unicode*
 ------------------------
 
@@ -785,7 +808,7 @@ The Netbeans interface was updated for Sun Studio 10.  The protocol number
 goes from 2.2 to 2.3. (Gordon Prieur)
 
 Mac: When starting up Vim will load the $VIMRUNTIME/macmap.vim script to
-define default command-key mappings.
+define default command-key mappings. (mostly by Benji Fisher)
 
 Mac: Add the selection type to the clipboard, so that Block, line and
 character selections can be used between two Vims. (Eckehard Berns)
index 34fb3d776424e46a69b2e0a5ff5573df5c8431af..608e59af0399400f0549707110317b2d174907ec 100644 (file)
--- a/src/ui.c
+++ b/src/ui.c
@@ -1235,6 +1235,7 @@ clip_copy_modeless_selection(both)
            {
                int     off;
                int     i;
+               int     ci;
 
                off = LineOffset[row];
                for (i = start_col; i < end_col; ++i)
@@ -1246,12 +1247,12 @@ clip_copy_modeless_selection(both)
                    else
                    {
                        bufp += utf_char2bytes(ScreenLinesUC[off + i], bufp);
-                       for (i = 0; i < Screen_mco; ++i)
+                       for (ci = 0; ci < Screen_mco; ++ci)
                        {
                            /* Add a composing character. */
-                           if (ScreenLinesC[i][off + i] == 0)
+                           if (ScreenLinesC[ci][off + i] == 0)
                                break;
-                           bufp += utf_char2bytes(ScreenLinesC[i][off + i],
+                           bufp += utf_char2bytes(ScreenLinesC[ci][off + i],
                                                                        bufp);
                        }
                    }