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