Skip to content

Commit

Permalink
Remove diff option for now
Browse files Browse the repository at this point in the history
  • Loading branch information
mkchoi212 committed Jan 1, 2018
1 parent f94e86c commit 6fd77f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
9 changes: 0 additions & 9 deletions conflict/conflict.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
package conflict

import (
"strings"

"github.com/mkchoi212/fac/color"
"github.com/sergi/go-diff/diffmatchpatch"
)

// Conflict represents a single conflict that may have occured
Expand Down Expand Up @@ -88,9 +85,3 @@ func In(fname string) (list []Conflict) {
}
return
}

func (c *Conflict) Diff() []string {
dmp := diffmatchpatch.New()
diffs := dmp.DiffMain(strings.Join(c.CurrentLines, ""), strings.Join(c.ForeignLines, ""), false)
return []string{dmp.DiffPrettyText(diffs)}
}
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ func parseInput(g *gocui.Gui, v *gocui.View) error {
Select(&conflict.All[cur], g, true)
case in == 'q':
globalQuit(g)
case in == 'z':
conflict.All[cur].ToggleDiff()
Select(&conflict.All[cur], g, false)
// case in == 'z':
// conflict.All[cur].ToggleDiff()
// Select(&conflict.All[cur], g, false)
default:
PrintPrompt(g, color.Red(color.Regular, "[wasd] >>"))
consecutiveError++
Expand Down
1 change: 0 additions & 1 deletion summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ func printHelp(v *gocui.View) {
s - show more lines down
a - select left screen
d - select right screen
z - toggle diff
j - scroll down
k - scroll up
Expand Down

0 comments on commit 6fd77f4

Please sign in to comment.