updated for version 7.0089
diff --git a/src/misc1.c b/src/misc1.c
index 7209a1a..30d7696 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -2461,7 +2461,6 @@
 #endif
     }
     ++curbuf->b_changedtick;
-    ++global_changedtick;
 }
 
 static void changedOneline __ARGS((buf_T *buf, linenr_T lnum));
@@ -2851,7 +2850,6 @@
 #endif
     }
     ++buf->b_changedtick;
-    ++global_changedtick;
 #ifdef FEAT_NETBEANS_INTG
     netbeans_unmodified(buf);
 #endif
@@ -3144,9 +3142,18 @@
 prompt_for_number()
 {
     int		i;
+    int		save_cmdline_row;
+    int		save_State;
 
     /* When using ":silent" assume that <CR> was entered. */
     MSG_PUTS(_("Choice number (<Enter> cancels): "));
+
+    /* Set the state such that text can be selected/copied/pasted. */
+    save_cmdline_row = cmdline_row;
+    cmdline_row = Rows - 1;
+    save_State = State;
+    State = CMDLINE;
+
     i = get_number(TRUE);
     if (KeyTyped)		/* don't call wait_return() now */
     {
@@ -3155,6 +3162,10 @@
 	need_wait_return = FALSE;
 	msg_didany = FALSE;
     }
+    else
+	cmdline_row = save_cmdline_row;
+    State = save_State;
+
     return i;
 }