Bug 486273: [typing] "Cut Line" command misses to add first line to clipboard when selection was non-empty
diff --git a/org.eclipse.ui.workbench.texteditor/plugin.properties b/org.eclipse.ui.workbench.texteditor/plugin.properties
index 7b1f232..d92f936 100644
--- a/org.eclipse.ui.workbench.texteditor/plugin.properties
+++ b/org.eclipse.ui.workbench.texteditor/plugin.properties
@@ -67,7 +67,7 @@
 command.clearMark.name = Clear Mark
 command.deleteLine.description = Delete a line of text
 command.deleteLine.name = Delete Line
-command.cutLine.description = Cut a line of text
+command.cutLine.description = Cut a line of text, or multiple lines when invoked again without interruption
 command.cutLine.name = Cut Line
 command.deleteLineBeginning.description = Delete to the beginning of a line of text
 command.deleteLineBeginning.name = Delete to Beginning of Line
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/TextViewerDeleteLineTarget.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/TextViewerDeleteLineTarget.java
index 7b8aab4..4cce8de 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/TextViewerDeleteLineTarget.java
+++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/TextViewerDeleteLineTarget.java
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2000, 2009 IBM Corporation and others.
+ * Copyright (c) 2000, 2016 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -202,7 +202,9 @@
 
 		@Override
 		public void selectionChanged(SelectionChangedEvent event) {
-			uninstall();
+			if (!fDeleting) {
+				uninstall();
+			}
 		}
 
 		@Override
@@ -222,8 +224,9 @@
 
 		@Override
 		public void modifyText(ModifyEvent e) {
-			if (!fDeleting)
+			if (!fDeleting) {
 				uninstall();
+			}
 		}
 	}