cleanup
This commit is contained in:
1 parent
1186bf6382
commit
355075cf75
5 files changed
+12
-8
No files matched your search
@@ -138,7 +138,7 @@ The following variables are exported for shell commands:
|
|||||||
$fs selected file(s) separated with 'filesep'
|
$fs selected file(s) separated with 'filesep'
|
||||||
$fx current file or selected file(s) if any
|
$fx current file or selected file(s) if any
|
||||||
$id id number of the client
|
$id id number of the client
|
||||||
|
|
||||||
For Windows, the above variables are exported as `%f%`, `%fs`, `%fx%` and `%id%` respectively.
|
For Windows, the above variables are exported as `%f%`, `%fs`, `%fx%` and `%id%` respectively.
|
||||||
|
|
||||||
The following variables are set to the corresponding values:
|
The following variables are set to the corresponding values:
|
||||||
|
|||||||
@@ -142,6 +142,9 @@ The following variables are exported for shell commands:
|
|||||||
$fx current file or selected file(s) if any
|
$fx current file or selected file(s) if any
|
||||||
$id id number of the client
|
$id id number of the client
|
||||||
|
|
||||||
|
For Windows, the above variables are exported as '%f%', '%fs', '%fx%' and
|
||||||
|
'%id%' respectively.
|
||||||
|
|
||||||
The following variables are set to the corresponding values:
|
The following variables are set to the corresponding values:
|
||||||
|
|
||||||
$LF_LEVEL current nesting level
|
$LF_LEVEL current nesting level
|
||||||
|
|||||||
@@ -156,6 +156,8 @@ The following variables are exported for shell commands:
|
|||||||
$id id number of the client
|
$id id number of the client
|
||||||
.EE
|
.EE
|
||||||
.PP
|
.PP
|
||||||
|
For Windows, the above variables are exported as `%f%`, `%fs`, `%fx%` and `%id%` respectively.
|
||||||
|
.PP
|
||||||
The following variables are set to the corresponding values:
|
The following variables are set to the corresponding values:
|
||||||
.PP
|
.PP
|
||||||
.EX
|
.EX
|
||||||
|
|||||||
+4
-4
@@ -12,10 +12,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
envOpener = os.Getenv("OPENER")
|
envOpener = os.Getenv("OPENER")
|
||||||
envEditor = os.Getenv("EDITOR")
|
envEditor = os.Getenv("EDITOR")
|
||||||
envPager = os.Getenv("PAGER")
|
envPager = os.Getenv("PAGER")
|
||||||
envShell = os.Getenv("SHELL")
|
envShell = os.Getenv("SHELL")
|
||||||
envTcellTruecolor = os.Getenv("TCELL_TRUECOLOR")
|
envTcellTruecolor = os.Getenv("TCELL_TRUECOLOR")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -982,10 +982,9 @@ func (ui *ui) readNormalEvent(ev tcell.Event) expr {
|
|||||||
ui.keyCount = nil
|
ui.keyCount = nil
|
||||||
ui.menuBuf = nil
|
ui.menuBuf = nil
|
||||||
return expr
|
return expr
|
||||||
} else {
|
|
||||||
ui.menuBuf = listBinds(binds)
|
|
||||||
return draw
|
|
||||||
}
|
}
|
||||||
|
ui.menuBuf = listBinds(binds)
|
||||||
|
return draw
|
||||||
}
|
}
|
||||||
case *tcell.EventResize:
|
case *tcell.EventResize:
|
||||||
return &callExpr{"redraw", nil, 1}
|
return &callExpr{"redraw", nil, 1}
|
||||||
|
|||||||
Reference in new issue
Block a user