mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-04 10:57:50 +08:00
Move util/ceildiv{"" _test} to edit/
This commit is contained in:
parent
d9e94440cb
commit
48c9fbd1a2
|
@ -1,4 +1,4 @@
|
|||
package util
|
||||
package edit
|
||||
|
||||
// CeilDiv computes ceil(float(a)/b) but does not actually use float
|
||||
// arithmetics.
|
|
@ -1,4 +1,4 @@
|
|||
package util
|
||||
package edit
|
||||
|
||||
import "testing"
|
||||
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user