diff --git a/lib/drum.hoon b/lib/drum.hoon index 53744aa87a..d409648f77 100644 --- a/lib/drum.hoon +++ b/lib/drum.hoon @@ -408,10 +408,14 @@ +>(mir lin) :: ++ se-just :: adjusted buffer - |= lin/(pair @ud stub) + |= {pom/stub lin/(pair @ud (list @c))} ^+ +> - =. off ?:((lth p.lin edg) 0 (sub p.lin edg)) - (se-show (sub p.lin off) (scag:klr edg (slag:klr off q.lin))) + =/ pol (lent-char:klr pom) + =/ end (sub edg pol) + =. off ?:((lte p.lin end) 0 (sub p.lin end)) + %+ se-show + (sub (add pol p.lin) off) + (welp pom [*stye (swag [off end] q.lin)]~) :: ++ se-view :: flush buffer ^+ . @@ -819,11 +823,9 @@ (ta-hom (cat:edit pos.inp txt)) :: ++ ta-vew :: computed prompt - ^- (pair @ud stub) + ^- {pom/stub lin/(pair @ud (list @c))} =; vew/(pair (list @c) styx) - =+ lin=(make:klr q.vew) - :_ (welp lin [*stye p.vew]~) - (add pos.inp (lent-char:klr lin)) + [(make:klr q.vew) pos.inp p.vew] ?: vis.pom :- buf.say.inp :: default prompt ?~ ris