~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric

« back to all changes in this revision

Viewing changes to src/core/Mono.Texteditor/Mono.TextEditor/SelectionActions.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2011-06-27 17:03:13 UTC
  • mto: (1.8.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: james.westby@ubuntu.com-20110627170313-6cvz3s19x6e9hqe9
ImportĀ upstreamĀ versionĀ 2.5.92+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
                {
106
106
                        data.Caret.PreserveSelection = true;
107
107
                        if (!data.IsSomethingSelected) {
108
 
                                data.MainSelection = new Selection (new DocumentLocation (data.Caret.Line, 0), new DocumentLocation (data.Caret.Line, 0));
 
108
                                data.MainSelection = new Selection (new DocumentLocation (data.Caret.Line, DocumentLocation.MinColumn), new DocumentLocation (data.Caret.Line, DocumentLocation.MinColumn));
109
109
                        }
110
110
                }
111
111
 
129
129
                                int toOffset = (toLine < fromLine)? toSegment.Offset: toSegment.EndOffset;
130
130
                                data.ExtendSelectionTo (toOffset);
131
131
                        }
132
 
                                           
133
132
                        data.Caret.PreserveSelection = false;
134
133
                }
135
134
 
137
136
                {
138
137
                        data.Caret.PreserveSelection = true;
139
138
                        CaretMoveActions.ToDocumentEnd (data);
140
 
                        data.MainSelection = new Selection (new DocumentLocation (0, 0), data.Caret.Location);
 
139
                        data.MainSelection = new Selection (new DocumentLocation (DocumentLocation.MinLine, DocumentLocation.MinColumn), data.Caret.Location);
141
140
                        data.Caret.PreserveSelection = false;
142
141
                }
143
142