mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-24 23:06:36 +00:00
Let the users adjust the layout width but still giving them certain limitations of the range (#10436)
This commit is contained in:
parent
9efa5ee2e8
commit
fed5604dd7
@ -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':
|
||||
|
Loading…
x
Reference in New Issue
Block a user