diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-05-29 01:10:04 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-05-29 01:10:04 -0700 |
commit | 63662f71091078eeb5fad7af1916c8caac1f29f1 (patch) | |
tree | 6058e16c8ccaaabc6da80cfed25875b0457646c3 /sandbox | |
parent | eb1df4aae75e67f498bc4d110f48e892f4ab874e (diff) | |
download | mu-63662f71091078eeb5fad7af1916c8caac1f29f1.tar.gz |
3891
Diffstat (limited to 'sandbox')
-rw-r--r-- | sandbox/003-shortcuts.mu | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sandbox/003-shortcuts.mu b/sandbox/003-shortcuts.mu index 466d4d47..65dc4d24 100644 --- a/sandbox/003-shortcuts.mu +++ b/sandbox/003-shortcuts.mu @@ -1651,7 +1651,7 @@ def minimal-render-for-ctrl-u editor:&:editor, screen:&:screen -> go-render?:boo i <- add i, 1 # if we have a wrapped line, give up and render the whole screen wrap?:bool <- equal i, end - return-if wrap?, 1/do-render + return-if wrap?, 1/go-render curr <- next curr break-unless curr c:char <- get *curr, value:offset @@ -1893,7 +1893,7 @@ def minimal-render-for-ctrl-k editor:&:editor, screen:&:screen, deleted-cells:&: right:num <- get *editor, right:offset end:num <- subtract right, left wrap?:bool <- greater-or-equal old-row-len, end - return-if wrap?, 1/do-render + return-if wrap?, 1/go-render # accumulate the current line as text and render it buf:&:buffer:char <- new-buffer 30 # accumulator for the text we need to render curr:&:duplex-list:char <- get *editor, before-cursor:offset |