ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC/UI.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC/UI.pm (file contents):
Revision 1.167 by elmex, Mon Apr 24 08:44:23 2006 UTC vs.
Revision 1.168 by elmex, Mon Apr 24 08:50:38 2006 UTC

1477 } elsif ($sym == CFClient::SDLK_UP) { 1477 } elsif ($sym == CFClient::SDLK_UP) {
1478 if ($self->{history_pointer} < 0) { 1478 if ($self->{history_pointer} < 0) {
1479 $self->{history_saveback} = $self->get_text; 1479 $self->{history_saveback} = $self->get_text;
1480 } 1480 }
1481 $self->{history_pointer}++; 1481 $self->{history_pointer}++;
1482 if ($self->{history_pointer} >= @{$self->{history}}) { 1482 if ($self->{history_pointer} >= @{$self->{history} || []}) {
1483 $self->{history_pointer} = @{$self->{history}} - 1; 1483 $self->{history_pointer} = @{$self->{history} || []} - 1;
1484 } 1484 }
1485 $self->set_text ($self->{history}->[$self->{history_pointer}]); 1485 $self->set_text ($self->{history}->[$self->{history_pointer}]);
1486 1486
1487 } elsif ($sym == CFClient::SDLK_DOWN) { 1487 } elsif ($sym == CFClient::SDLK_DOWN) {
1488 $self->{history_pointer}--; 1488 $self->{history_pointer}--;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines