Skip to content

Commit

Permalink
Merge pull request #989 from jinjiaodawang/development
Browse files Browse the repository at this point in the history
fix #988, run inverse search command as separated command and args
  • Loading branch information
ahrm committed Feb 28, 2024
2 parents 7f769be + 56d0e9f commit ed77c64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pdf_viewer/main_widget.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// deduplicate database code
// deduplicate database code
// make sure jsons exported by previous sioyek versions can be imported
// maybe: use a better method to handle deletion of canceled download portals
// change find_closest_*_index and argminf to use the fact that the list is sorted and speed up the search (not important if there are not a ridiculous amount of highlight/bookmarks)
Expand Down Expand Up @@ -4766,8 +4766,8 @@ std::wstring MainWidget::synctex_under_pos(WindowPos position) {
#else
QString command = QString::fromStdWString(inverse_search_command).arg(file_name, line_string.c_str(), column_string.c_str());
#endif
res = QString("%1 %2 %3").arg(new_path, QString::number(line), QString::number(column)).toStdWString();
QProcess::startDetached(command);
QStringList args = QProcess::splitCommand(command);
QProcess::startDetached(args[0], args.mid(1));
}
else {
show_error_message(L"inverse_search_command is not set in prefs_user.config");
Expand Down

0 comments on commit ed77c64

Please sign in to comment.