mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 22:17:41 +00:00
Fix reverse search when the filename contains a forbidden character
(including, but not only, spaces). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34390 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0b9ecb750d
commit
08f2841940
@ -6428,23 +6428,10 @@ lyxpipe
|
|||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
Reverse search is triggered by double-click.
|
Reverse search is triggered by double-click.
|
||||||
\change_inserted 1 1273345633
|
\change_inserted 1 1271453423
|
||||||
|
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Subsection
|
|
||||||
|
|
||||||
\change_inserted 1 1273345657
|
|
||||||
Troubleshooting
|
|
||||||
\end_layout
|
|
||||||
|
|
||||||
\begin_layout Standard
|
|
||||||
|
|
||||||
\change_inserted 1 1273345723
|
|
||||||
If you prepared reverse search environment and reverse search still does
|
|
||||||
not work make sure your file does not contain spaces in its name.
|
|
||||||
\end_layout
|
|
||||||
|
|
||||||
\begin_layout Section
|
\begin_layout Section
|
||||||
|
|
||||||
\change_inserted 1 1271453442
|
\change_inserted 1 1271453442
|
||||||
|
@ -272,8 +272,7 @@ Buffer * BufferList::getBufferFromTmp(string const & s)
|
|||||||
for (; it < end; ++it) {
|
for (; it < end; ++it) {
|
||||||
if (prefixIs(s, (*it)->temppath())) {
|
if (prefixIs(s, (*it)->temppath())) {
|
||||||
// check whether the filename matches the master
|
// check whether the filename matches the master
|
||||||
string const master_name = changeExtension(onlyFileName(
|
string const master_name = (*it)->latexName();
|
||||||
(*it)->absFileName()), ".tex");
|
|
||||||
if (suffixIs(s, master_name))
|
if (suffixIs(s, master_name))
|
||||||
return *it;
|
return *it;
|
||||||
// if not, try with the children
|
// if not, try with the children
|
||||||
|
Loading…
Reference in New Issue
Block a user