Skip to content

Commit

Permalink
M#3200: Неоднообразное поведение по Ctrl+F на "нормальной папке" и на…
Browse files Browse the repository at this point in the history
… ".."
  • Loading branch information
w17 committed Apr 6, 2016
1 parent 0d435a1 commit d048983
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
7 changes: 6 additions & 1 deletion far/changelog
@@ -1,4 +1,9 @@
drkns 05.04.2016 21:49:33 +0200 - build 4611
w17 06.04.2016 13:29:38 +0300 - build 4612

1. M#3200: Неоднообразное поведение по Ctrl+F на "нормальной папке" и на ".."
[R]Ctrl+[[R]Alt+]F; на ".." теперь не добавляют завершающий '\'

drkns 05.04.2016 21:49:33 +0200 - build 4611

1. При определённых условиях поиск в панели плагина приводил к падению.

Expand Down
10 changes: 5 additions & 5 deletions far/filelist.cpp
Expand Up @@ -1435,7 +1435,7 @@ int FileList::ProcessKey(const Manager::Key& Key)
}
else
{
int CurrentPath=FALSE;
bool add_slash = false;
assert(m_CurFile < static_cast<int>(m_ListData.size()));
CurPtr = &m_ListData[m_CurFile];

Expand All @@ -1451,10 +1451,10 @@ int FileList::ProcessKey(const Manager::Key& Key)
else
strFileName.resize(1); // "."

if (!(LocalKey==KEY_CTRLALTF || LocalKey==KEY_RCTRLRALTF || LocalKey==KEY_CTRLRALTF || LocalKey==KEY_RCTRLALTF))
LocalKey=KEY_CTRLF;
add_slash = (LocalKey & 0xFFFF) != (KEY_CTRLF & 0xFFFF);

CurrentPath=TRUE;
if (!(LocalKey==KEY_CTRLALTF || LocalKey==KEY_RCTRLRALTF || LocalKey==KEY_CTRLRALTF || LocalKey==KEY_RCTRLALTF))
LocalKey = KEY_CTRLF;
}

if (LocalKey==KEY_CTRLF || LocalKey==KEY_RCTRLF || LocalKey==KEY_CTRLALTF || LocalKey==KEY_RCTRLRALTF || LocalKey==KEY_CTRLRALTF || LocalKey==KEY_RCTRLALTF)
Expand Down Expand Up @@ -1493,7 +1493,7 @@ int FileList::ProcessKey(const Manager::Key& Key)
}
}

if (CurrentPath)
if (add_slash)
AddEndSlash(strFileName);

// добавим первый префикс!
Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
@@ -1 +1 @@
m4_define(BUILD,4611)m4_dnl
m4_define(BUILD,4612)m4_dnl

0 comments on commit d048983

Please sign in to comment.