Let the users adjust the layout width but still giving them certain limitations of the range (#10436)

This commit is contained in:
Vanellope 2018-06-22 09:05:30 +09:00 committed by radare
parent 9efa5ee2e8
commit fed5604dd7

View File

@ -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':