Skip to content

Commit a67be63

Browse files
committed
UI: fix indent handling on top line
1 parent 7a4bc7a commit a67be63

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ide/android/assets/main.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ sub do_about()
7373
print
7474
print "Version "; sbver
7575
print
76-
print "Copyright (c) 2002-2015 Chris Warren-Smith"
76+
print "Copyright (c) 2002-2016 Chris Warren-Smith"
7777
print "Copyright (c) 1999-2006 Nic Christopoulos" + chr(10)
7878
print "http://smallbasic.sourceforge.net" + chr(10)
7979
print "SmallBASIC comes with ABSOLUTELY NO WARRANTY. ";

src/ui/textedit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ void TextEditInput::editEnter() {
973973
char spaces[LINE_BUFFER_SIZE];
974974
int start = lineStart(_state.cursor);
975975
int prevLineStart = lineStart(start - 1);
976-
if (prevLineStart) {
976+
if (prevLineStart >= 0) {
977977
int indent = getIndent(spaces, sizeof(spaces), prevLineStart);
978978
if (indent) {
979979
_buf.insertChars(_state.cursor, spaces, indent);

0 commit comments

Comments
 (0)