add unmark command to unmark all selections

Mentioned in #79.
This commit is contained in:
Gokcehan committed 2017-11-25 16:15:04 +03:00
1 parent d16fcbea71
commit ce508d7ed3
6 files changed
+13 -2

No files matched your search

+5
View File
@@ -390,6 +390,11 @@ func (nav *nav) invert() {
}
}
func (nav *nav) unmark() {
nav.marks = make(map[string]int)
nav.markInd = 0
}
func (nav *nav) save(copy bool) error {
if len(nav.marks) == 0 {
curr, err := nav.currFile()