Project

General

Profile

Defect #13644 » unified_diff.rb.patch

lib/redmine/unified_diff (as of 2.3.0, trunk) - Jongwook Choi, 2013-04-05 02:57

View differences:

lib/redmine/unified_diff.rb (작업 사본)
199 199
        while starting < max && line_left[starting] == line_right[starting]
200 200
          starting += 1
201 201
        end
202
        while line_left[starting].ord.between?(128, 191) && starting > 0
202
        while starting > 0 && line_left[starting].ord.between?(128, 191)
203 203
          starting -= 1
204 204
        end
205 205
        ending = -1
206 206
        while ending >= -(max - starting) && line_left[ending] == line_right[ending]
207 207
          ending -= 1
208 208
        end
209
        while line_left[ending].ord.between?(128, 191) && ending > -1
209
		while ending > -1 && line_left[ending].ord.between?(128, 191)
210 210
          ending -= 1
211 211
        end
212 212
        unless starting == 0 && ending == -1
(3-3/5)