cody: fixed vk_up on empty

git-svn-id: trunk@64724 -
This commit is contained in:
mattias 2021-03-02 18:04:30 +00:00
parent 26cadbd4f3
commit 16eb8abc21

View File

@ -37,7 +37,7 @@ unit CodyIdentifiersDlg;
interface
uses
Classes, SysUtils, LCLProc, contnrs, Laz_AVL_Tree,
Classes, SysUtils, Math, LCLProc, contnrs, Laz_AVL_Tree,
// LCL
Forms, Controls, Dialogs, ButtonPanel, StdCtrls, ExtCtrls, LCLType, Buttons, Menus,
// IdeIntf
@ -924,7 +924,7 @@ begin
case Key of
VK_DOWN:
if i<0 then
ItemsListBox.ItemIndex:=0
ItemsListBox.ItemIndex:=Min(ItemsListBox.Items.Count-1,0)
else if i<ItemsListBox.Count-1 then
ItemsListBox.ItemIndex:=i+1;
VK_UP: