diff command.c @ 23412:f6c225ffe60d

Allow setting the direction in the step_property command.
author albeu
date Thu, 31 May 2007 09:42:14 +0000
parents 07741c30e64c
children ae4237717601
line wrap: on
line diff
--- a/command.c	Thu May 31 09:13:21 2007 +0000
+++ b/command.c	Thu May 31 09:42:14 2007 +0000
@@ -1735,7 +1735,8 @@
 		               cmd->args[0].v.s);
 		}
 		r = mp_property_do(cmd->args[0].v.s,
-		                   M_PROPERTY_STEP_UP,
+		                   cmd->args[2].v.i < 0 ?
+		                   M_PROPERTY_STEP_DOWN : M_PROPERTY_STEP_UP,
 		                   arg, mpctx);
 	    step_prop_err:
 		if (r == M_PROPERTY_UNKNOWN)