Skip to content

Commit

Permalink
improve fdb
Browse files Browse the repository at this point in the history
  • Loading branch information
xianjimli committed Dec 26, 2024
1 parent 0ea208b commit 1b11abc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/changes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# 最新动态

2024/12/26
* 增加fdb回车使用上一个命令(感谢智明提供补丁)

2024/12/25
* 修改widget从父上移除时先复位焦点状态,避免由于idle的原因导致焦点处理有误,比如,销毁一个有焦点的edit,同时创建一个新的edit并设置焦点,新的edit由于上一个edit的blur时input_method_request(input_method(), NULL),导致接收不到输入法事件(感谢朝泽提供补丁)

Expand Down
5 changes: 5 additions & 0 deletions tools/fdb/fdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,7 @@ static ret_t fdb_shell_exec(app_info_t* app, const char* line) {

ret_t fdb_shell_run(void) {
app_info_t app;
char* last_line = NULL;
tk_object_t* obj = object_default_create();

memset(&app, 0x00, sizeof(app));
Expand All @@ -784,6 +785,10 @@ ret_t fdb_shell_run(void) {
char* line = aw_read_line(KMAG "[fdb] # " KNRM);
if (line == NULL) {
break;
} else if (*line == '\n') {
line = last_line;
} else {
last_line = tk_str_copy(last_line, line);
}

if (app.debugger != NULL) {
Expand Down

0 comments on commit 1b11abc

Please sign in to comment.