File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ void Editor::handleEvent(TEvent& event){
3030 saveFile ();
3131 }
3232 }else if (event.what == evKeyboard){
33- std::cerr << " key down " << event.keyDown .text << " \n " ;
3433 turbo::handleKeyDown (scintilla, event.keyDown );
3534 }
3635 // TODO: handle mouse events
Original file line number Diff line number Diff line change 11#include < text-editor/editorView.hpp>
22
3- EditorView::EditorView (const TRect& bounds) : TSurfaceView(bounds){
3+ EditorView::EditorView (const TRect& bounds) noexcept : TSurfaceView(bounds){
44 surface = &drawSurface;
55 drawSurface.resize (bounds.b - bounds.a );
66}
77
8- void EditorView::resize (const TRect& bounds){
8+ void EditorView::resize (const TRect& bounds) noexcept {
99 drawSurface.resize (bounds.b - bounds.a );
1010 if (editor){
1111 editor->setSize (bounds.b - bounds.a );
You can’t perform that action at this time.
0 commit comments