From 2e8a01dd61ca6e776a6e8770361db1a1048fa003 Mon Sep 17 00:00:00 2001 From: Nao YONASHIRO Date: Thu, 15 Feb 2018 16:48:11 +0900 Subject: [PATCH] docs: update toPos document --- render.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/render.go b/render.go index 50cef95..e721044 100644 --- a/render.go +++ b/render.go @@ -248,9 +248,6 @@ func (r *Render) move(from, to int) int { } // toPos returns the relative position from the beginning of the string. -// the coordinate system with the beginning of the string as (0,0) and the width as r.col. -// the cursor points to the next character, but it points to that character only at the right end (x == r.col - 1). -// x will not return 0 except for the first row. func (r *Render) toPos(cursor int) (x, y int) { col := int(r.col) return cursor % col, cursor / col