Skip to content

Commit e7abd2d

Browse files
committed
Minor autocompletion fix for the f=tab
1 parent ab5a430 commit e7abd2d

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

libr/core/cmd_type.inc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ static bool print_typelist_json_cb(void *p, const char *k, const char *v) {
823823
char *format_s = sdb_get (sdb, formatcmd, NULL);
824824
if (format_s) {
825825
r_str_trim (format_s);
826-
pj_ks (pj, "format", format_s ? format_s : "");
826+
pj_ks (pj, "format", format_s);
827827
free (format_s);
828828
}
829829
pj_end (pj);

libr/core/core.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1482,8 +1482,6 @@ R_API void r_core_autocomplete(RCore * R_NULLABLE core, RLineCompletion *complet
14821482
if (should_complete) {
14831483
if (eq[1] == ' ') {
14841484
autocomplete_flags (core, completion, expr_start);
1485-
} else {
1486-
r_line_completion_push (completion, "= ");
14871485
}
14881486
}
14891487
} else if (r_str_startswith (buf->data, "ec ")) {

0 commit comments

Comments
 (0)