varname error (extz_data not exts_data)
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 30 Sep 2021 14:15:12 +0000 (15:15 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 30 Sep 2021 14:15:12 +0000 (15:15 +0100)
src/nmutil/extend.py

index 9bff144fbdf61e1dee24cb290f6282716906dac6..c2f8e4d5104ea4874ad71aaadcb78ae952ebae46 100644 (file)
@@ -23,7 +23,7 @@ def exts(exts_data, width, fullwidth):
 def extz(extz_data, width, fullwidth):
     diff = fullwidth-width
     if diff == 0:
-        return exts_data
+        return extz_data
     extz_data = extz_data[0:width]
     if diff <= 0:
         return extz_data[:fullwidth]