This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Commit afd8db2
authored
Update revsecommoneditorbehavior.livecodescript
added testing for if tFirstLine is tLastLine, though the speed difference is not measurable, both version take 12 milliseconds on a 3600 line script. But I agree it is a cleaner way to do it.
Additionally I changed
put (the number of chars of line 1 to tFirstLine - 1 of tNewText) + 1 into tFirstLineChar
from + 2 to +1. This also keeps the selection if the cursor is positioned before the first char.
As far as I understand charIndex works only on fields not variables. I did test and there is not speed improvement using charIndex on the field.1 parent d3b7dad commit afd8db2
1 file changed
Lines changed: 11 additions & 3 deletions
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2998 | 2998 | | |
2999 | 2999 | | |
3000 | 3000 | | |
3001 | | - | |
| 3001 | + | |
| 3002 | + | |
| 3003 | + | |
| 3004 | + | |
| 3005 | + | |
3002 | 3006 | | |
3003 | 3007 | | |
3004 | 3008 | | |
3005 | 3009 | | |
3006 | 3010 | | |
3007 | 3011 | | |
3008 | | - | |
| 3012 | + | |
| 3013 | + | |
| 3014 | + | |
| 3015 | + | |
| 3016 | + | |
3009 | 3017 | | |
3010 | 3018 | | |
3011 | 3019 | | |
3012 | 3020 | | |
3013 | 3021 | | |
3014 | | - | |
| 3022 | + | |
3015 | 3023 | | |
3016 | 3024 | | |
3017 | 3025 | | |
| |||
0 commit comments