More work on porting diff kitten

This commit is contained in:
Kovid Goyal
2023-03-27 07:53:54 +05:30
parent 4f5fc1000d
commit 1c7d1094d4
3 changed files with 259 additions and 10 deletions
+3 -1
View File
@@ -53,11 +53,13 @@ func set_diff_command(q string) error {
return err
}
type Center struct{ prefix_count, suffix_count int }
type Chunk struct {
is_context bool
left_start, right_start int
left_count, right_count int
centers []struct{ prefix_count, suffix_count int }
centers []Center
}
func (self *Chunk) add_line() {