You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Core/datatypes.cpp
+28-1Lines changed: 28 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,9 @@ better::Text better::backspace(better::Text text) { //couple of bugs with backsp
25
25
immer::flex_vector<char> newLine;
26
26
27
27
if(text.cursor.column > 0) {
28
+
if(text.topColumnNumber == text.cursor.column) {
29
+
text.topColumnNumber -= 1;
30
+
}
28
31
newLine = text.textEdit[text.cursor.row].erase(text.cursor.column - 1); //make case for deleting newline
29
32
}
30
33
else {
@@ -47,9 +50,19 @@ better::Text better::backspace(better::Text text) { //couple of bugs with backsp
47
50
better::Text better::newLine(better::Text textEdit) { //create cases for the following: newline at start of line, newline at end of line, newline in middle of line, newline at end of text
0 commit comments