Skip to content

Commit

Permalink
fix issue #12
Browse files Browse the repository at this point in the history
  • Loading branch information
srgblv committed Feb 18, 2025
1 parent b14f676 commit 2f28a2d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/hrtng.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include <intel.hpp>
#include <graph.hpp>
#include <offset.hpp>
#include <demangle.hpp>
#include "warn_on.h"

#include "helpers.h"
Expand Down Expand Up @@ -622,14 +623,18 @@ ACT_DEF(zeal_doc_help)
vdui_t *vu = get_widget_vdui(ctx->widget);
cexpr_t *call;
qstring name;
if(!is_call(vu, &call) || !getExpName(vu->cfunc, call->x, &name) || name.length() < 3)
if(!is_call(vu, &call) || !getExpName(vu->cfunc, call->x, &name))
return 0;

stripName(&name);
if (name.last() == 'A' || name.last() == 'W')
qstring dname;
if(demangle_name(&dname, name.c_str(), MNG_NODEFINIT) >= 0)
name = dname;
if (name.length() > 1 && (name.last() == 'A' || name.last() == 'W'))
name.remove_last();

name.insert(0, "zeal ");
name.insert(0, "zeal \"");
name.append('"');

launch_process_params_t lpp;
lpp.flags = LP_USE_SHELL;
Expand Down Expand Up @@ -5312,7 +5317,7 @@ plugmod_t*
addon.producer = "Sergey Belov and Milan Bohacek, Rolf Rolles, Takahiro Haruyama," \
" Karthik Selvaraj, Ali Rahbar, Ali Pezeshk, Elias Bachaalany, Markus Gaasedelen";
addon.url = "https://github.com/KasperskyLab/hrtng";
addon.version = "2.2.23";
addon.version = "2.2.24";
register_addon(&addon);

return PLUGIN_KEEP;
Expand Down

0 comments on commit 2f28a2d

Please sign in to comment.