~ubuntu-branches/ubuntu/utopic/monodevelop/utopic

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.DocFood/MonoDevelop.DocFood/DocFoodTextEditorExtension.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2012-06-22 20:35:35 UTC
  • mfrom: (10.3.2)
  • Revision ID: package-import@ubuntu.com-20120622203535-zrozwvcf6kfk6l6i
Tags: 3.0.3.2+dfsg-1
* [3fd89ae] Imported Upstream version 3.0.3.2+dfsg
* [379a680] Remove old patches we haven't used for ages from git.
* [d71161d] Remove correct_paths_in_monodevelop-core-addins.pc.patch.
  Upstream claim to have fixed this by moving assembly install locations.
* [15dbfb9] Fix install location for MonoDevelop.Gettext.dll.config.
* [26eb434] Fix install location for MonoDevelop.SourceEditor2.dll.config.
* [4169974] Upstream commit 53282c9 which finally reconciles the 
  MonoDevelop.Gettext.dll install location with the 
  monodevelop-core-addins.pc location.

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
                        
84
84
                        int offset = textEditorData.Caret.Offset;
85
85
                        
86
 
                        int insertedLength = textEditorData.Insert (offset, documentationEmpty);
87
 
                        // important to set the caret position here for the undo step
88
 
                        textEditorData.Caret.Offset = offset + insertedLength;
89
 
                        
90
 
                        insertedLength = textEditorData.Replace (offset, insertedLength, documentation);
91
 
                        textEditorData.Caret.Offset = offset + insertedLength;
 
86
                        int insertedLength;
 
87
                        
 
88
                        // Insert key (3rd undo step)
 
89
                        textEditorData.Insert (offset, "/");
 
90
                        
 
91
                        using (var undo = textEditorData.OpenUndoGroup ()) {
 
92
                                insertedLength = textEditorData.Replace (offset, 1, documentationEmpty);
 
93
                                // important to set the caret position here for the undo step
 
94
                                textEditorData.Caret.Offset = offset + insertedLength;
 
95
                        }
 
96
                        
 
97
                        using (var undo = textEditorData.OpenUndoGroup ()) {
 
98
                                insertedLength = textEditorData.Replace (offset, insertedLength, documentation);
 
99
                                textEditorData.Caret.Offset = offset + insertedLength;
 
100
                        }
92
101
                        return false;
93
102
                }
94
103