mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-05 03:56:46 +00:00
Add workaround for .-- (#9009)
1. Rap server have still scr.prompt and scr.interactive enabled. That's why .-- will terminate a rap server loop and turn back to an interactive mode.
This commit is contained in:
parent
6c2a366e53
commit
aea0912fb6
@ -1845,9 +1845,9 @@ R_API int r_core_rtr_cmds (RCore *core, const char *port) {
|
||||
buf[i] = buf[i + 1]? ';': '\0';
|
||||
}
|
||||
}
|
||||
if (!r_config_get_i (core->config, "scr.prompt") &&
|
||||
(!strcmp ((char *)buf, "q!") ||
|
||||
!strcmp ((char *)buf, ".--"))) {
|
||||
if ((!r_config_get_i (core->config, "scr.prompt") &&
|
||||
!strcmp ((char *)buf, "q!")) ||
|
||||
!strcmp ((char *)buf, ".--")) {
|
||||
r_socket_close (ch);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user