Skip to content

Commit

Permalink
🐛 Remove unsupported functions in Julia 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ronisbr committed Oct 26, 2020
1 parent 642ae0f commit 6242a47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/backends/text/fill.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function _compute_row_fill_vectors(id_rows::Vector{Int},

# Compute the array separation if the vertical crop mode is `:middle`.
num_rows = length(id_rows)
Δ₀ = div(num_printed_rows, 2, RoundUp)
Δ₀ = cld(num_printed_rows, 2)

# Create the vector that will be used to fill the rows given the crop mode.
jvec = Vector{Int}(undef, num_printed_rows)
Expand Down
4 changes: 2 additions & 2 deletions src/backends/text/recipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ function _create_printing_recipe(screen::Screen,
# Compute the amount of space left to print the table data.
table_data_space = data_vertical_limit - header_length

Δs = div(table_data_space, 2, RoundUp)
Δr = div(num_printed_rows, 2, RoundUp)
Δs = cld(table_data_space, 2)
Δr = cld(num_printed_rows, 2)

printed_lines = 0

Expand Down

0 comments on commit 6242a47

Please sign in to comment.