Skip to content

Commit

Permalink
remove placeholder cutoff (#821)
Browse files Browse the repository at this point in the history
  • Loading branch information
domluna authored Mar 5, 2024
1 parent 57e4bc3 commit 3b86b85
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/nest_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ function find_optimal_nest_placeholders(
max_margin::Int,
)::Vector{Int}
placeholder_inds = findall(n -> n.typ === PLACEHOLDER, fst.nodes)
if length(placeholder_inds) <= 1 || length(placeholder_inds) >= 30
if length(placeholder_inds) <= 1
return placeholder_inds
end
newline_inds = findall(n -> n.typ === NEWLINE, fst.nodes)
Expand Down Expand Up @@ -306,7 +306,6 @@ function find_optimal_nest_placeholders(
end

_f = (t::Vector{Int}) -> begin
local n = sum(t)
local ranges = UnitRange{Int}[]
local s = 1
for tt in t
Expand Down

0 comments on commit 3b86b85

Please sign in to comment.