{
if (nPane < 0)
{
- nPane = GetOptionsMgr()->GetInt(OPT_ACTIVE_PANE);
+ nPane = (m_nBufferType[0] != BUFFERTYPE::UNNAMED) ? GetOptionsMgr()->GetInt(OPT_ACTIVE_PANE) : 0;
if (nPane < 0 || nPane >= m_nBuffers)
nPane = 0;
}
{
if (nPane < 0)
{
- nPane = GetOptionsMgr()->GetInt(OPT_ACTIVE_PANE);
+ nPane = (m_nBufferType[0] != BUFFERTYPE::UNNAMED) ? GetOptionsMgr()->GetInt(OPT_ACTIVE_PANE) : 0;
if (nPane < 0 || nPane >= m_pImgMergeWindow->GetPaneCount())
nPane = 0;
}
{
if (nPane < 0)
{
- nPane = GetOptionsMgr()->GetInt(OPT_ACTIVE_PANE);
+ nPane = (m_nBufferType[0] != BUFFERTYPE::UNNAMED) ? GetOptionsMgr()->GetInt(OPT_ACTIVE_PANE) : 0;
if (nPane < 0 || nPane >= m_nBuffers)
nPane = 0;
}
{
if (nPane < 0)
{
- nPane = GetOptionsMgr()->GetInt(OPT_ACTIVE_PANE);
+ nPane = (m_nBufferType[0] != BUFFERTYPE::UNNAMED) ? GetOptionsMgr()->GetInt(OPT_ACTIVE_PANE) : 0;
if (nPane < 0 || nPane >= m_pWebDiffWindow->GetPaneCount())
nPane = 0;
}