edited grapher implementation
- fixed grapher implementation with new gui - fixed a bug in CgLineEdit where pressing backspace on an empty input would cause a crash
This commit is contained in:
@@ -64,7 +64,7 @@ impl CgTextEdit for CgLineEdit {
|
||||
self.ptr += 1;
|
||||
}
|
||||
fn backspace(&mut self) {
|
||||
if self.ptr >= 0 {
|
||||
if self.ptr > 0 {
|
||||
self.ptr -= 1;
|
||||
self.text.remove(self.ptr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user