Don't create a double stack frame when calling aliases
The old code created a new stack frame in parse_line_alias_special(), then another one in parse_line(). This prevented $functioncall() from working, and made the output of CALL look odd. |Rain| mentioned this years ago in starman.irc.
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
[Changes 1.2.2]
|
[Changes 1.2.2]
|
||||||
|
|
||||||
|
* Fix $functioncall() scripting function (reported by |Rain|). (caf)
|
||||||
|
|
||||||
* Ensure close_server() clears the internal command queues for the right
|
* Ensure close_server() clears the internal command queues for the right
|
||||||
server. (caf)
|
server. (caf)
|
||||||
|
|
||||||
|
|||||||
@@ -1917,7 +1917,7 @@ char * parse_line_alias_special (char *name, char *what, char *args, int d1, int
|
|||||||
window_display = old_window_display;
|
window_display = old_window_display;
|
||||||
|
|
||||||
will_catch_return_exceptions++;
|
will_catch_return_exceptions++;
|
||||||
parse_line(NULL, what, args, d1, d2, 1);
|
parse_line(NULL, what, args, d1, d2, 0);
|
||||||
will_catch_return_exceptions--;
|
will_catch_return_exceptions--;
|
||||||
return_exception = 0;
|
return_exception = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user