Remove redundant layer of branching in get_cell_aligns_fast
This commit is contained in:
		@@ -313,19 +313,15 @@ function! s:get_cell_aligns_fast(rows)
 | 
				
			|||||||
        if !empty(cs)
 | 
					        if !empty(cs)
 | 
				
			||||||
          let lstart = len(cs[1])
 | 
					          let lstart = len(cs[1])
 | 
				
			||||||
          let lend = len(cs[2])
 | 
					          let lend = len(cs[2])
 | 
				
			||||||
          if lstart > 0 || lend > 0
 | 
					 | 
				
			||||||
          if lstart > 0 && lend > 0
 | 
					          if lstart > 0 && lend > 0
 | 
				
			||||||
            let aligns[idx] = 'center'
 | 
					            let aligns[idx] = 'center'
 | 
				
			||||||
            else
 | 
					          elseif lend > 0
 | 
				
			||||||
              if lend > 0
 | 
					 | 
				
			||||||
            let aligns[idx] = 'left'
 | 
					            let aligns[idx] = 'left'
 | 
				
			||||||
          elseif lstart > 0
 | 
					          elseif lstart > 0
 | 
				
			||||||
            let aligns[idx] = 'right'
 | 
					            let aligns[idx] = 'right'
 | 
				
			||||||
          endif
 | 
					          endif
 | 
				
			||||||
        endif
 | 
					        endif
 | 
				
			||||||
      endif
 | 
					      endif
 | 
				
			||||||
        endif
 | 
					 | 
				
			||||||
      endif
 | 
					 | 
				
			||||||
    endfor
 | 
					    endfor
 | 
				
			||||||
  endfor
 | 
					  endfor
 | 
				
			||||||
  for idx in range(clen)
 | 
					  for idx in range(clen)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user