Compare commits

..

No commits in common. "3a4d66220fce71094f6ccb1ff799c3e26863d7d0" and "a85b782cf07b0cea83e03d18c3fc88fe342890a9" have entirely different histories.

2 changed files with 2 additions and 19 deletions

View File

@ -78,23 +78,6 @@ func (b *Board) Run() {
b.StoryOpen = true
b.ViewStory()
b.StoryOpen = false
case 'g':
if len(b.Lanes[b.Current].Stories) > 0 {
b.Lanes[b.Current].Current = 0
b.Lanes[b.Current].storyOff = 0
}
case 'G':
if len(b.Lanes[b.Current].Stories) > 0 {
b.Lanes[b.Current].Current = len(b.Lanes[b.Current].Stories)-1
if b.Lanes[b.Current].Current * 3 + 1 > b.height-5 {
off := b.Lanes[b.Current].Current - 3 % (b.height-5)
if off+1 > b.height-5 {
b.Lanes[b.Current].storyOff = off
} else {
b.Lanes[b.Current].storyOff = off+1
}
}
}
case 'h', 'j', 'k', 'l', 'H', 'L', 'K', 'J':
b.ClearMessage()
b.Move(ch)
@ -375,7 +358,7 @@ func (b *Board) Move(ch rune) {
// move selection down a story
if b.Lanes[b.Current].Current < len(b.Lanes[b.Current].Stories)-1 {
b.Lanes[b.Current].Current += 1
if b.Lanes[b.Current].Current * 3 + 1 - (b.Lanes[b.Current].storyOff*3) >= b.height-4 {
if b.Lanes[b.Current].Current * 3 + 1 > b.height-5 {
b.Lanes[b.Current].storyOff += 1
}
} else {

File diff suppressed because one or more lines are too long