Cleanup
This commit is contained in:
parent
10bc15d418
commit
9bba261e53
16
vimdoc.go
16
vimdoc.go
@ -106,15 +106,17 @@ func (v *vimDoc) buildHelpTag(text []byte) []byte {
|
||||
|
||||
func (v *vimDoc) buildChapters(h *heading) []byte {
|
||||
index := -1
|
||||
for i, curr := range v.headings {
|
||||
if curr == h {
|
||||
index = i
|
||||
break
|
||||
{
|
||||
for i, curr := range v.headings {
|
||||
if curr == h {
|
||||
index = i
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if index < 0 {
|
||||
log.Fatal("heading not found")
|
||||
if index < 0 {
|
||||
log.Fatal("heading not found")
|
||||
}
|
||||
}
|
||||
|
||||
var chapters []int
|
||||
|
Loading…
Reference in New Issue
Block a user