Fix mouse click not opening file menu in panels (#14688)

This commit is contained in:
GustavoLCR 2019-07-29 20:50:12 -03:00 committed by radare
parent d5e3926b5d
commit 722e3babfb

View File

@ -6067,6 +6067,9 @@ void __panelPrompt(const char *prompt, char *buf, int len) {
char *get_word_from_canvas(RCore *core, RPanels *panels, int x, int y) {
char *s = r_cons_canvas_to_string (panels->can);
char *tmp = s;
s = r_str_newf (" %s", tmp);
free (tmp);
char *R = r_str_ansi_crop (s, 0, y - 1, x + 1024, y);
r_str_ansi_filter (R, NULL, NULL, -1);
char *r = r_str_ansi_crop (s, x - 1, y - 1, x + 1024, y);