RingNotepad - better implementation of commentLines() function
@@ -108,10 +108,13 @@ class RNoteEditMenu
func CommentLines
UpdateSelectedText(func cData {
aList = str2list(cData)
+ if cData[len(cData)] = char(10)
+ aList + "" # This check to overcome trimming of EOL by str2list() function
+ ok
for cItem in aList
- if len(cItem) > 3
+ if len(cItem) > 1
if cItem[1] = '/' and cItem[2] = '/'
- cItem = substr(cItem, 4)
+ cItem = substr(cItem, 3)
loop
ok
ok
