editor: shift+del

edi-0.8
Alastair Poole 2 years ago
parent 3c4d9529b9
commit 3848c35c72
  1. 4
      src/bin/editor/edi_editor.c
  2. 7
      src/bin/mainview/edi_mainview_panel.c

@ -911,6 +911,10 @@ _smart_cb_key_down(void *data EINA_UNUSED, Evas *e EINA_UNUSED,
{
edi_mainview_goto_popup_show();
}
else if (!strcmp(ev->key, "Del"))
{
edi_mainview_cut();
}
else if (!strcmp(ev->key, "Home"))
{
edi_mainview_goto_start();

@ -970,7 +970,6 @@ edi_mainview_panel_goto_position(Edi_Mainview_Panel *panel, unsigned int row, un
elm_object_focus_set(editor->entry, EINA_TRUE);
}
void
edi_mainview_panel_goto_end(Edi_Mainview_Panel *panel)
{
@ -990,13 +989,13 @@ edi_mainview_panel_goto_end(Edi_Mainview_Panel *panel)
code = elm_code_widget_code_get(editor->entry);
if (!code) return;
tabstop = elm_code_widget_tabstop_get(editor->entry);
row = elm_code_file_lines_get(code->file);
if (row <= 0) return;
line = elm_code_file_line_get(code->file, row);
if (!line) return;
tabstop = elm_code_widget_tabstop_get(editor->entry);
if (!line || !line->content) return;
for (ch = line->content; *ch; ch++)
{

Loading…
Cancel
Save