Skip to content

Commit 91a5452

Browse files
Marenugdamore
authored andcommitted
disable quick edit mode on EnableMouse() in win10
1 parent bac5437 commit 91a5452

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

console_win.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ func (s *cScreen) CharacterSet() string {
183183
}
184184

185185
func (s *cScreen) EnableMouse() {
186-
s.setInMode(modeResizeEn | modeMouseEn)
186+
s.setInMode(modeResizeEn | modeMouseEn | modeExtndFlg)
187187
}
188188

189189
func (s *cScreen) DisableMouse() {
@@ -926,6 +926,7 @@ func (s *cScreen) clearScreen(style Style) {
926926
}
927927

928928
const (
929+
modeExtndFlg uint32 = 0x0080
929930
modeMouseEn uint32 = 0x0010
930931
modeResizeEn uint32 = 0x0008
931932
modeWrapEOL uint32 = 0x0002

0 commit comments

Comments
 (0)