Index: g_editor.c =================================================================== --- g_editor.c (Revision 10558) +++ g_editor.c (Arbeitskopie) @@ -1939,7 +1939,7 @@ static t_binbuf *canvas_findbuf; int binbuf_match(t_binbuf *inbuf, t_binbuf *searchbuf, int wholeword); - /* find an atom or string of atoms */ +/* find an atom or string of atoms */ static int canvas_dofind(t_canvas *x, int *myindex1p) { t_gobj *y; @@ -2251,7 +2251,8 @@ static void canvas_cut(t_canvas *x) { - if (x->gl_editor && x->gl_editor->e_selectedline) + if(x->gl_editor) { + if (x->gl_editor->e_selectedline) canvas_clearline(x); else if (x->gl_editor->e_textedfor) { @@ -2264,7 +2265,7 @@ rtext_key(x->gl_editor->e_textedfor, 127, &s_); canvas_dirty(x, 1); } - else if (x->gl_editor && x->gl_editor->e_selection) + else if (x->gl_editor->e_selection) { canvas_setundo(x, canvas_undo_cut, canvas_undo_set_cut(x, UCUT_CUT), "cut"); @@ -2272,6 +2273,9 @@ canvas_doclear(x); sys_vgui("pdtk_canvas_getscroll .x%lx.c\n", x); } + } else { + bug("no editor available"); + } } static int paste_onset;