Author: hbelusca
Date: Sat Aug 24 17:44:19 2013
New Revision: 59811
URL:
http://svn.reactos.org/svn/reactos?rev=59811&view=rev
Log:
[CONSRV]
Fix "Select All" functionality.
Modified:
trunk/reactos/win32ss/user/winsrv/consrv/frontends/gui/guiterm.c
Modified: trunk/reactos/win32ss/user/winsrv/consrv/frontends/gui/guiterm.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/winsrv/consrv…
==============================================================================
--- trunk/reactos/win32ss/user/winsrv/consrv/frontends/gui/guiterm.c [iso-8859-1]
(original)
+++ trunk/reactos/win32ss/user/winsrv/consrv/frontends/gui/guiterm.c [iso-8859-1] Sat Aug
24 17:44:19 2013
@@ -314,10 +314,14 @@
LPWSTR WindowTitle = NULL;
SIZE_T Length = 0;
+ /*
+ * We select all the characters from line 1 to
+ * the line where the cursor is positioned.
+ */
Console->Selection.dwSelectionAnchor.X = 0;
Console->Selection.dwSelectionAnchor.Y = 0;
Console->dwSelectionCursor.X = ActiveBuffer->ViewSize.X - 1;
- Console->dwSelectionCursor.Y = ActiveBuffer->ViewSize.Y - 1;
+ Console->dwSelectionCursor.Y = ActiveBuffer->CursorPosition.Y;
Console->Selection.dwFlags |= CONSOLE_SELECTION_IN_PROGRESS |
CONSOLE_MOUSE_SELECTION;
GuiConsoleUpdateSelection(Console, &Console->dwSelectionCursor);