Tab in notes file

This commit is contained in:
mhotar
2014-05-02 21:32:35 +02:00
parent 1a43b6d353
commit bee347b291
+3 -4
View File
@@ -78,10 +78,6 @@ void readTextFile(int & lines_count)
c = '\301';
escape = 0;
}
else if (escape == 1 && escape_chars[0] == 't') {
c = 0x09; // tab
escape = 0;
}
else {
escape++;
continue;
@@ -90,6 +86,9 @@ void readTextFile(int & lines_count)
else if (c=='~') {
c = 'z'+1;
}
else if (c=='\t') {
c = 0x1D; //tab
}
escape = 0;
s_text_screen[current_line-s_pgOfs][line_length++] = c;
}