diff --git a/os.go b/os.go index f54d4097..ca8ab509 100644 --- a/os.go +++ b/os.go @@ -126,10 +126,6 @@ func setDefaults() { gOpts.keys[""] = &callExpr{"doc", nil, 1} } -func moveCursor(y, x int) { - fmt.Printf("\033[%d;%dH", y, x) -} - func isExecutable(f os.FileInfo) bool { return f.Mode()&0111 != 0 } diff --git a/os_windows.go b/os_windows.go index a69aac7d..45d099d7 100644 --- a/os_windows.go +++ b/os_windows.go @@ -98,11 +98,6 @@ func setDefaults() { gOpts.keys[""] = &callExpr{"doc", nil, 1} } -func moveCursor(y, x int) { - // TODO: implement - return -} - func isExecutable(f os.FileInfo) bool { exts := strings.Split(envPathExt, string(filepath.ListSeparator)) for _, e := range exts { diff --git a/ui.go b/ui.go index dbbed052..8dd7f2e9 100644 --- a/ui.go +++ b/ui.go @@ -746,11 +746,6 @@ func (ui *ui) draw(nav *nav) { } termbox.Flush() - - if ui.cmdPrefix == "" { - // leave the cursor at the beginning of the current file for screen readers - moveCursor(ui.wins[woff+length-1].y+nav.dirs[doff+length-1].pos+1, ui.wins[woff+length-1].x+1) - } } func findBinds(keys map[string]expr, prefix string) (binds map[string]expr, ok bool) {