1 parent
1119ba0d25
commit
c937dab9e9
3 files changed
-14
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user