Move util/ceildiv{"" _test} to edit/

This commit is contained in:
Cheer Xiao 2015-02-26 15:32:49 +01:00
parent d9e94440cb
commit 48c9fbd1a2
3 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,4 @@
package util
package edit
// CeilDiv computes ceil(float(a)/b) but does not actually use float
// arithmetics.

View File

@ -1,4 +1,4 @@
package util
package edit
import "testing"

View File

@ -9,7 +9,6 @@ import (
"unicode/utf8"
"github.com/elves/elvish/edit/tty"
"github.com/elves/elvish/util"
)
const (
@ -473,7 +472,7 @@ tokens:
if cols == 0 {
cols = 1
}
lines := util.CeilDiv(len(cands), cols)
lines := CeilDiv(len(cands), cols)
bs.completionLines = lines
// Determine the window to show.