소스 검색

fix locate

Yasuhiro Matsumoto 9 년 전
부모
커밋
e8a10ddc7d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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())