Permalink
Browse files

removes superfluous ||s

  • Loading branch information...
1 parent 89830c3 commit 3dde315c1f162b07bef17b36eb4d8ef1c6707f0a @fxn committed Sep 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/tkn
View
@@ -116,10 +116,10 @@ def render_block(content)
nrows, ncols = winsize
nlines = content.count("\n")
- row ||= [1, 1 + (nrows - nlines)/2].max
+ row = [1, 1 + (nrows - nlines)/2].max
width = width(content)
- col ||= [1, 1 + (ncols - width)/2].max
+ col = [1, 1 + (ncols - width)/2].max
content.gsub(/^/) do
cursor_at(row, col).tap { row += 1 }

0 comments on commit 3dde315

Please sign in to comment.