Skip to content

Commit

Permalink
fix: meta command placed in first line can't be updated
Browse files Browse the repository at this point in the history
  • Loading branch information
DemoJameson committed Apr 21, 2024
1 parent f40eddc commit 6894d1c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ private static void UpdateAllMetadata(string commandName, Func<Command, string>
string[] allLines = File.ReadAllLines(tasFilePath);
int allLinesLength = allLines.Length;
foreach (int lineNumber in updateLines.Keys) {
if (lineNumber > 0 && lineNumber < allLinesLength) {
if (lineNumber >= 0 && lineNumber < allLinesLength) {
allLines[lineNumber] = updateLines[lineNumber];
}
}
Expand Down

0 comments on commit 6894d1c

Please sign in to comment.