Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
3d22c388
Commit
3d22c388
authored
Jun 26, 1995
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Fsplit_window): Nicer error if split size is too small.
parent
f3d4eb7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
src/window.c
src/window.c
+10
-6
No files found.
src/window.c
View file @
3d22c388
...
...
@@ -2231,9 +2231,11 @@ and put SIZE columns in the first of the pair.")
if
(
NILP
(
horflag
))
{
if
(
size
<
window_min_height
||
size
+
window_min_height
>
XFASTINT
(
o
->
height
))
args_out_of_range_3
(
window
,
chsize
,
horflag
);
if
(
size
<
window_min_height
)
error
(
"Window height %d too small (after splitting)"
,
size
);
if
(
size
+
window_min_height
>
XFASTINT
(
o
->
height
))
error
(
"Window height %d too small (after splitting)"
,
XFASTINT
(
o
->
height
)
-
size
);
if
(
NILP
(
o
->
parent
)
||
NILP
(
XWINDOW
(
o
->
parent
)
->
vchild
))
{
...
...
@@ -2244,9 +2246,11 @@ and put SIZE columns in the first of the pair.")
}
else
{
if
(
size
<
window_min_width
||
size
+
window_min_width
>
XFASTINT
(
o
->
width
))
args_out_of_range_3
(
window
,
chsize
,
horflag
);
if
(
size
<
window_min_width
)
error
(
"Window width %d too small (after splitting)"
,
size
);
if
(
size
+
window_min_width
>
XFASTINT
(
o
->
width
))
error
(
"Window width %d too small (after splitting)"
,
XFASTINT
(
o
->
width
)
-
size
);
if
(
NILP
(
o
->
parent
)
||
NILP
(
XWINDOW
(
o
->
parent
)
->
hchild
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment