Skip to content

Commit

Permalink
Avoid warning when there is no history yet
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerd Knops committed Jan 19, 2012
1 parent 5a9e507 commit bdeb640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Support/bin/tmctags
Expand Up @@ -541,7 +541,7 @@ HTML
{
my $h=$CtagsHistorySize-1;

$history.=`head -$h '$tagsDir/$CtagsHistoryFileName'`;
$history.=`head -$h '$tagsDir/$CtagsHistoryFileName'` if(-f "$tagsDir/$CtagsHistoryFileName");

open(HISTORY,">$tagsDir/$CtagsHistoryFileName") or die("Can't open '$tagsDir/$CtagsHistoryFileName' for write: $!\n");
print HISTORY $history;
Expand Down

0 comments on commit bdeb640

Please sign in to comment.