netstar pushed a commit to branch master.

http://git.enlightenment.org/tools/edi.git/commit/?id=e6a0cce26a09d4e24a7f90708957b987cb6ac088

commit e6a0cce26a09d4e24a7f90708957b987cb6ac088
Author: Al Poole <nets...@gmail.com>
Date:   Thu Oct 19 21:41:26 2017 +0100

    mainview: remove pointless code and guard against crash.
---
 src/bin/mainview/edi_mainview.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/bin/mainview/edi_mainview.c b/src/bin/mainview/edi_mainview.c
index 5661114..6d1d86e 100644
--- a/src/bin/mainview/edi_mainview.c
+++ b/src/bin/mainview/edi_mainview.c
@@ -316,7 +316,9 @@ void edi_mainview_split_current(void)
      return;
 
    panel = edi_mainview_panel_current_get();
-   edi_mainview_panel_focus(panel);
+
+   if (!panel->current)
+     return;
 
    editor = evas_object_data_get(panel->current->view, "editor");
    if (!editor)

-- 


Reply via email to