[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [15789] branches/soc-2008-quorn/source/ blender/blenkernel/intern/text.c: Undo Fix: Down arrow on last line sent cursor to end (right) but undo sent it up.

Ian Thompson quornian at googlemail.com
Sun Jul 27 00:37:06 CEST 2008


Revision: 15789
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15789
Author:   quorn
Date:     2008-07-27 00:37:05 +0200 (Sun, 27 Jul 2008)

Log Message:
-----------
Undo Fix: Down arrow on last line sent cursor to end (right) but undo sent it up. Similar for up arrow on first line. Undo was then off by a line.

Modified Paths:
--------------
    branches/soc-2008-quorn/source/blender/blenkernel/intern/text.c

Modified: branches/soc-2008-quorn/source/blender/blenkernel/intern/text.c
===================================================================
--- branches/soc-2008-quorn/source/blender/blenkernel/intern/text.c	2008-07-26 22:25:26 UTC (rev 15788)
+++ branches/soc-2008-quorn/source/blender/blenkernel/intern/text.c	2008-07-26 22:37:05 UTC (rev 15789)
@@ -628,8 +628,7 @@
 			if(!undoing) txt_undo_add_op(text, sel?UNDO_SUP:UNDO_CUP);
 		}
 	} else {
-		*charp= 0;
-		if(!undoing) txt_undo_add_op(text, sel?UNDO_SUP:UNDO_CUP);
+		txt_move_bol(text, sel);
 	}
 
 	if(!sel) txt_pop_sel(text);
@@ -654,8 +653,7 @@
 		} else
 			if(!undoing) txt_undo_add_op(text, sel?UNDO_SDOWN:UNDO_CDOWN);	
 	} else {
-		*charp= (*linep)->len;
-		if(!undoing) txt_undo_add_op(text, sel?UNDO_SDOWN:UNDO_CDOWN);
+		txt_move_eol(text, sel);
 	}
 
 	if(!sel) txt_pop_sel(text);





More information about the Bf-blender-cvs mailing list