remove hidden cursor movement

Related #22 and #381
This commit is contained in:
Gokcehan committed 2020-07-04 01:21:07 +03:00
1 parent 1119ba0d25
commit c937dab9e9
3 files changed
-14

No files matched your search

-4
View File
@@ -126,10 +126,6 @@ func setDefaults() {
gOpts.keys["<f-1>"] = &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
}
-5
View File
@@ -98,11 +98,6 @@ func setDefaults() {
gOpts.keys["<f-1>"] = &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 {
-5
View File
@@ -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) {