summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/actions.c25
1 files changed, 22 insertions, 3 deletions
diff --git a/src/actions.c b/src/actions.c
index 5efcd10..80b1e98 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -1385,13 +1385,14 @@ cmd_pos (int interactive, void *data)
int pos;
rp_window *win;
- if (current_window() == NULL) return NULL;
if (data == NULL)
{
message (" pos: Two arguments needed ");
return NULL;
}
+ if (current_window() == NULL) return NULL;
+
win = current_window();
if ((pos = parse_winpos (data)) < 0)
@@ -1412,9 +1413,15 @@ cmd_defwinpos (int interactive, void *data)
{
int pos;
+ if (data == NULL)
+ {
+ message (" defwinpos: Two arguments needed ");
+ return NULL;
+ }
+
if ((pos = parse_winpos (data)) < 0)
{
- message (" pos: Unknown position ");
+ message (" defwinpos: Unknown position ");
}
else
{
@@ -1429,6 +1436,12 @@ cmd_deftranspos (int interactive, void *data)
{
int pos;
+ if (data == NULL)
+ {
+ message (" deftranspos: Two arguments needed ");
+ return NULL;
+ }
+
if ((pos = parse_winpos (data)) < 0)
{
message (" pos: Unknown position ");
@@ -1446,9 +1459,15 @@ cmd_defmaxsizepos (int interactive, void *data)
{
int pos;
+ if (data == NULL)
+ {
+ message (" defmaxsizepos: Two arguments needed ");
+ return NULL;
+ }
+
if ((pos = parse_winpos (data)) < 0)
{
- message (" pos: Unknown position ");
+ message (" defmaxsizepos: Unknown position ");
}
else
{