Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
0adad1f5
Commit
0adad1f5
authored
Aug 03, 2015
by
Hugh McMaster
Committed by
Alexandre Julliard
Aug 03, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Restore the original console cursor size on Enter press, if the Insert…
kernel32: Restore the original console cursor size on Enter press, if the Insert key toggle is active.
parent
68fb8c55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
editline.c
dlls/kernel32/editline.c
+4
-0
No files found.
dlls/kernel32/editline.c
View file @
0adad1f5
...
...
@@ -61,6 +61,7 @@ typedef struct WCEL_Context {
WCHAR
*
yanked
;
/* yanked line */
unsigned
mark
;
/* marked point (emacs mode only) */
CONSOLE_SCREEN_BUFFER_INFO
csbi
;
/* current state (initial cursor, window size, attribute) */
CONSOLE_CURSOR_INFO
cinfo
;
/* original cursor state (size, visibility) */
HANDLE
hConIn
;
HANDLE
hConOut
;
unsigned
done
:
1
,
/* to 1 when we're done with editing */
...
...
@@ -485,6 +486,8 @@ static void WCEL_Done(WCEL_Context* ctx)
ctx
->
line
[
ctx
->
len
++
]
=
'\n'
;
ctx
->
line
[
ctx
->
len
]
=
0
;
WriteConsoleW
(
ctx
->
hConOut
,
&
nl
,
1
,
NULL
,
NULL
);
if
(
ctx
->
insertkey
)
SetConsoleCursorInfo
(
ctx
->
hConOut
,
&
ctx
->
cinfo
);
ctx
->
done
=
1
;
}
...
...
@@ -930,6 +933,7 @@ WCHAR* CONSOLE_Readline(HANDLE hConsoleIn, BOOL can_pos_cursor)
if
(
!
GetConsoleMode
(
ctx
.
hConOut
,
&
mode
))
mode
=
0
;
ctx
.
can_wrap
=
(
mode
&
ENABLE_WRAP_AT_EOL_OUTPUT
)
?
1
:
0
;
ctx
.
can_pos_cursor
=
can_pos_cursor
;
GetConsoleCursorInfo
(
ctx
.
hConOut
,
&
ctx
.
cinfo
);
if
(
!
WCEL_Grow
(
&
ctx
,
1
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment