mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
...
This commit is contained in:
parent
0614f05335
commit
01a70e06c4
1 changed files with 2 additions and 2 deletions
|
|
@ -461,8 +461,8 @@ func is_non_blank(text string) bool {
|
|||
|
||||
func (self *Patch) detect_moved_lines(left_lines, right_lines []string) {
|
||||
// Build maps from line text to lists of line numbers for removed and added lines.
|
||||
removed := make(map[string][]int) // text -> left line numbers
|
||||
added := make(map[string][]int) // text -> right line numbers
|
||||
removed := make(map[string][]int, len(left_lines)) // text -> left line numbers
|
||||
added := make(map[string][]int, len(right_lines)) // text -> right line numbers
|
||||
for _, hunk := range self.all_hunks {
|
||||
for _, chunk := range hunk.chunks {
|
||||
if !chunk.is_context {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue