Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removes superfluous ||s

  • Loading branch information...
commit 3dde315c1f162b07bef17b36eb4d8ef1c6707f0a 1 parent 89830c3
@fxn authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/tkn
View
4 bin/tkn
@@ -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 }
Please sign in to comment.
Something went wrong with that request. Please try again.