Commits

Herbert Breunung committed fd08b36

reorder methods

Comments (0)

Files changed (1)

lib/Kephra/App/Editor.pm

 	return $self;
 }
 
-sub is_empty { not shift->GetTextLength }
-
-sub unmount_events {
-	my ($self, @which) = @_;
-	Wx::Event::EVT_STC_CHANGE          ($self, -1, sub {} );
-	Wx::Event::EVT_KEY_DOWN            ($self,     sub {} );
-	Wx::Event::EVT_STC_SAVEPOINTREACHED($self, -1, sub {} );
-	Wx::Event::EVT_STC_SAVEPOINTLEFT   ($self, -1, sub {} );
-	Wx::Event::EVT_SET_FOCUS           ($self,     sub {} );
-}
-
 sub mount_events {
 	my ($self, @which) = @_;
 	$self->DragAcceptFiles(1) if $^O eq 'MSWin32'; # enable drop files on win
 	$self;
 }
 
+sub unmount_events {
+	my ($self, @which) = @_;
+	Wx::Event::EVT_STC_CHANGE          ($self, -1, sub {} );
+	Wx::Event::EVT_KEY_DOWN            ($self,     sub {} );
+	Wx::Event::EVT_STC_SAVEPOINTREACHED($self, -1, sub {} );
+	Wx::Event::EVT_STC_SAVEPOINTLEFT   ($self, -1, sub {} );
+	Wx::Event::EVT_SET_FOCUS           ($self,     sub {} );
+}
+
+sub is_empty { not shift->GetTextLength }
+
 sub insert_text {
 	my ($self, $text, $pos) = @_;
 	$pos = $self->GetCurrentPos unless defined $pos;