diff --git a/docs/changelog.txt b/docs/changelog.txt index aed7cf082..80a3cf92f 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -36,6 +36,9 @@ changelog.txt uses a syntax similar to RST, with a few special sequences: ================================================================================ # Future +## Fixes +- `liquids`: fixed "range" command to default to 1 for dimensions consistently + ================================================================================ # 0.44.09-r1 diff --git a/plugins/liquids.cpp b/plugins/liquids.cpp index f478ddccb..f0dcf1ce3 100644 --- a/plugins/liquids.cpp +++ b/plugins/liquids.cpp @@ -271,7 +271,7 @@ command_result df_liquids (color_ostream &out_, vector & parameters) } else if(command == "range" || command == "r") { - int width, height, z_levels; + int width = 1, height = 1, z_levels = 1; command_result res = parseRectangle(out, commands, 1, commands.size(), width, height, z_levels); if (res != CR_OK)