Yasuhiro Matsumoto 8 years ago
parent
commit
6df6d4d004
1 changed files with 2 additions and 2 deletions
  1. 2 2
      colorable_windows.go

+ 2 - 2
colorable_windows.go

@@ -584,8 +584,8 @@ loop:
 			var count, written dword
 			switch n {
 			case 0:
-				cursor = coord{x: csbi.cursorPosition.x + 1, y: csbi.cursorPosition.y}
-				count = dword(csbi.size.x - csbi.cursorPosition.x - 1)
+				cursor = coord{x: csbi.cursorPosition.x, y: csbi.cursorPosition.y}
+				count = dword(csbi.size.x - csbi.cursorPosition.x)
 			case 1:
 				cursor = coord{x: csbi.window.left, y: csbi.window.top + csbi.cursorPosition.y}
 				count = dword(csbi.size.x - csbi.cursorPosition.x)