Skip to content

Commit

Permalink
fix CtrlA forget one character
Browse files Browse the repository at this point in the history
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
  • Loading branch information
Xiangfu Liu authored and Sebastien Bourdeauducq committed Apr 10, 2011
1 parent 5e39a17 commit b5bd14f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/edit.c
Expand Up @@ -497,7 +497,7 @@ static void edit_handle_event(EDIT *e, EVENT *ev, WIDGET *from)
case MTK_KEY_A:
if(userstate->get_keystate(MTK_KEY_LEFTCTRL)) {
e->ed->sel_beg = 0;
e->ed->sel_end = strlen(e->ed->txtbuf)-1;
e->ed->sel_end = strlen(e->ed->txtbuf);
ev_done = 2;
}
break;
Expand Down
2 changes: 1 addition & 1 deletion lib/entry.c
Expand Up @@ -477,7 +477,7 @@ static void entry_handle_event(ENTRY *e, EVENT *ev, WIDGET *from)
case MTK_KEY_A:
if(userstate->get_keystate(MTK_KEY_LEFTCTRL)) {
e->ed->sel_beg = 0;
e->ed->sel_end = strlen(e->ed->txtbuf)-1;
e->ed->sel_end = strlen(e->ed->txtbuf);
ev_done = 2;
}
break;
Expand Down

0 comments on commit b5bd14f

Please sign in to comment.