mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05:24 +02:00
bug 206164: [terminal] StringIndexOutOfBoundsException in getSelectedText
https://bugs.eclipse.org/bugs/show_bug.cgi?id=206164
This commit is contained in:
parent
27b1f002ea
commit
139e02ecdf
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ abstract public class AbstractTextCanvasModel implements ITextCanvasModel {
|
|||
* @return the currently selected text
|
||||
*/
|
||||
private String extractSelectedText() {
|
||||
if(fSelectionStartLine<0 || fSelectionStartCoumn<0|| fSelectionSnapshot==null)
|
||||
if(fSelectionStartLine<0 || fSelectionStartCoumn<0 || fSelectionEndColumn<0 || fSelectionSnapshot==null)
|
||||
return ""; //$NON-NLS-1$
|
||||
StringBuffer buffer=new StringBuffer();
|
||||
for (int line = fSelectionStartLine; line <= fSeletionEndLine; line++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue