From fed5604dd7014bcb4bc1aba1300aca1e0773a1d6 Mon Sep 17 00:00:00 2001 From: Vanellope Date: Fri, 22 Jun 2018 09:05:30 +0900 Subject: [PATCH] Let the users adjust the layout width but still giving them certain limitations of the range (#10436) --- libr/core/panels.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/libr/core/panels.c b/libr/core/panels.c index 2dd6086672..8d6ae2bde8 100644 --- a/libr/core/panels.c +++ b/libr/core/panels.c @@ -1333,18 +1333,16 @@ repeat: break; case 'H': r_cons_switchbuf (false); - panels->columnWidth += 4; panels->isResizing = true; - if (panels->columnWidth > 80) { - panels->columnWidth = 80; + if (panels->columnWidth + 4 < panels->can->w) { + panels->columnWidth += 4; } break; case 'L': r_cons_switchbuf (false); - panels->columnWidth -= 4; panels->isResizing = true; - if (panels->columnWidth < 10) { - panels->columnWidth = 10; + if (panels->columnWidth - 4 > 0) { + panels->columnWidth -= 4; } break; case 'g':