summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/split.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/split.c b/src/split.c
index b357f69..71ed61b 100644
--- a/src/split.c
+++ b/src/split.c
@@ -516,7 +516,7 @@ resize_frame_horizontally (rp_window_frame *frame, int diff)
{
resize_frame_right (frame, NULL, diff);
}
- else
+ else if (frame_left (frame) > defaults.padding_left)
{
resize_frame_left (frame, NULL, diff);
}
@@ -536,7 +536,7 @@ resize_frame_vertically (rp_window_frame *frame, int diff)
{
resize_frame_bottom (frame, NULL, diff);
}
- else
+ else if (frame_left (frame) > defaults.padding_top)
{
resize_frame_top (frame, NULL, diff);
}