add wrapscan option for cyclic search

Mentioned in #57.
This commit is contained in:
Gokcehan committed 2017-03-16 16:22:42 +03:00
1 parent 784d80ca30
commit 8bc975a858
6 files changed
+25 -8

No files matched your search

+6
View File
@@ -44,6 +44,12 @@ func (e *setExpr) eval(app *app, args []string) {
case "reverse!":
gOpts.reverse = !gOpts.reverse
app.nav.renew(app.nav.height)
case "wrapscan":
gOpts.wrapscan = true
case "nowrapscan":
gOpts.wrapscan = false
case "wrapscan!":
gOpts.wrapscan = !gOpts.wrapscan
case "scrolloff":
n, err := strconv.Atoi(e.val)
if err != nil {