mirror of
https://github.com/weechat/weechat.git
synced 2026-06-30 06:46:38 +02:00
Fix bug with current script pointer when current script is unloaded
This commit is contained in:
@@ -491,6 +491,10 @@ weechat_ruby_unload (struct t_plugin_script *script)
|
||||
|
||||
interpreter = script->interpreter;
|
||||
|
||||
if (ruby_current_script == script)
|
||||
ruby_current_script = (ruby_current_script->prev_script) ?
|
||||
ruby_current_script->prev_script : ruby_current_script->next_script;
|
||||
|
||||
script_remove (weechat_ruby_plugin, &ruby_scripts, script);
|
||||
|
||||
if (interpreter)
|
||||
|
||||
Reference in New Issue
Block a user