Browse Source

fix locate

Yasuhiro Matsumoto 9 năm trước cách đây
mục cha
commit
e8a10ddc7d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      colorable_windows.go

+ 1 - 1
colorable_windows.go

@@ -482,7 +482,7 @@ loop:
 				continue
 			}
 			csbi.cursorPosition.x = short(n2)
-			csbi.cursorPosition.x = short(n1)
+			csbi.cursorPosition.y = short(n1)
 			procSetConsoleCursorPosition.Call(uintptr(w.handle), *(*uintptr)(unsafe.Pointer(&csbi.cursorPosition)))
 		case 'J':
 			n, err := strconv.Atoi(buf.String())