[Monodevelop-patches-list] r1430 - in trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor: . Gui
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sat Apr 10 00:43:10 EDT 2004
Author: tberman
Date: 2004-04-10 00:43:09 -0400 (Sat, 10 Apr 2004)
New Revision: 1430
Modified:
trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs
Log:
refactor and clean the delete line func.
Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog 2004-04-09 23:35:58 UTC (rev 1429)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog 2004-04-10 04:43:09 UTC (rev 1430)
@@ -1,3 +1,7 @@
+2004-04-10 Todd Berman <tberman at sevenl.net>
+
+ * Gui/SourceEditorView.cs: cleanup the delete line func.
+
2004-04-09 Todd Berman <tberman at sevenl.net>
* Gui/SourceEditorBuffer.cs:
Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs 2004-04-09 23:35:58 UTC (rev 1429)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs 2004-04-10 04:43:09 UTC (rev 1430)
@@ -143,10 +143,10 @@
{
//remove the current line
TextIter iter = buf.GetIterAtMark (buf.InsertMark);
- TextIter start_iter = buf.GetIterAtLine (iter.Line);
+ iter.LineOffset = 0;
TextIter end_iter = buf.GetIterAtLine (iter.Line);
- end_iter.ForwardToLineEnd ();
- buf.Delete (start_iter, end_iter);
+ end_iter.LineOffset = end_iter.CharsInLine;
+ buf.Delete (iter, end_iter);
}
void TriggerCodeComplete ()
More information about the Monodevelop-patches-list
mailing list