Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
ac3a684d
Commit
ac3a684d
authored
Aug 13, 2015
by
Hugh McMaster
Committed by
Alexandre Julliard
Aug 17, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Reset insert key toggle when Insert Mode changes.
parent
52e68a78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
editline.c
dlls/kernel32/editline.c
+7
-1
No files found.
dlls/kernel32/editline.c
View file @
ac3a684d
...
...
@@ -913,7 +913,7 @@ WCHAR* CONSOLE_Readline(HANDLE hConsoleIn, BOOL can_pos_cursor)
const
KeyEntry
*
ke
;
unsigned
ofs
;
void
(
*
func
)(
struct
WCEL_Context
*
ctx
);
DWORD
mode
,
ks
;
DWORD
mode
,
input_mode
,
ks
;
int
use_emacs
;
memset
(
&
ctx
,
0
,
sizeof
(
ctx
));
...
...
@@ -928,6 +928,7 @@ WCHAR* CONSOLE_Readline(HANDLE hConsoleIn, BOOL can_pos_cursor)
!
GetConsoleScreenBufferInfo
(
ctx
.
hConOut
,
&
ctx
.
csbi
))
return
NULL
;
if
(
!
GetConsoleMode
(
hConsoleIn
,
&
mode
))
mode
=
0
;
input_mode
=
mode
;
ctx
.
shall_echo
=
(
mode
&
ENABLE_ECHO_INPUT
)
?
1
:
0
;
ctx
.
insert
=
(
mode
&
(
ENABLE_INSERT_MODE
|
ENABLE_EXTENDED_FLAGS
))
==
(
ENABLE_INSERT_MODE
|
ENABLE_EXTENDED_FLAGS
)
?
1
:
0
;
if
(
!
GetConsoleMode
(
ctx
.
hConOut
,
&
mode
))
mode
=
0
;
...
...
@@ -982,6 +983,11 @@ WCHAR* CONSOLE_Readline(HANDLE hConsoleIn, BOOL can_pos_cursor)
}
GetConsoleMode
(
hConsoleIn
,
&
mode
);
if
(
input_mode
!=
mode
)
{
input_mode
=
mode
;
ctx
.
insertkey
=
0
;
}
ctx
.
insert
=
(
mode
&
(
ENABLE_INSERT_MODE
|
ENABLE_EXTENDED_FLAGS
))
==
(
ENABLE_INSERT_MODE
|
ENABLE_EXTENDED_FLAGS
);
if
(
ctx
.
insertkey
)
...
...
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