diff options
| author | Andrés Cuervo <andrescuervor@gmail.com> | 2023-10-24 21:53:20 +0000 |
|---|---|---|
| committer | Andrés Cuervo <andrescuervor@gmail.com> | 2023-10-24 21:53:20 +0000 |
| commit | c71dc0f06075e83ab0cec9f9929baf917ed0ec8e (patch) | |
| tree | 638b3e802cfccc2817b7a34e82183ba8445511ae /virtual-programs | |
| parent | Set short default code (diff) | |
| download | folk-c71dc0f06075e83ab0cec9f9929baf917ed0ec8e.tar.gz folk-c71dc0f06075e83ab0cec9f9929baf917ed0ec8e.zip | |
Remove extraneous debug info
Diffstat (limited to 'virtual-programs')
| -rw-r--r-- | virtual-programs/editor.folk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/virtual-programs/editor.folk b/virtual-programs/editor.folk index 24389cf9..28648ecd 100644 --- a/virtual-programs/editor.folk +++ b/virtual-programs/editor.folk @@ -169,7 +169,9 @@ proc drawCursor {cursorPosition lineShift region} { # set adjustedShift [sub $multipliedShift $lineShiftHalf] set adjustedShift $multipliedShift set shiftedAnchor [sub $anchor $adjustedShift] - debug [lindex [rotateStroke [list $shiftedAnchor] $anchor $angle] 0] white + if {$::debug_cursor} { + debug [lindex [rotateStroke [list $shiftedAnchor] $anchor $angle] 0] white + } # add (x * width) to the shiftedAnchor position from the beginning of the line ... set scaledCursor [vec2::mult $cursorScale $cursorPosition] @@ -319,7 +321,6 @@ Every time keyboard claims key /currentCharacter/ is down with modifiers /modifi Claim the cursor is [list [getLineLength $code $cursor] $y] return } - puts "adding: $currentCharacter" Claim the cursor is [updateCursor $cursor {x 1}] Commit code { Claim $id has program code [insertCharacter $code $currentCharacter $cursor] } } |
