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:
Kevin Easton
2015-09-08 23:35:06 +10:00
parent 642ab8829d
commit aea7050efe
2 changed files with 3 additions and 1 deletions

View File

@@ -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)

View File

@@ -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;