lib/gm/notepad/table_column_set.rb in gm-notepad-0.0.17 vs lib/gm/notepad/table_column_set.rb in gm-notepad-0.0.18
- old
+ new
@@ -10,10 +10,12 @@
def names
[]
end
def column_index_for(cell:)
- cell.to_i
+ # In the file, we have cell 0 is the index. This is hidden from the cell lookup, so I
+ # want to internally treat the given cell as one less.
+ cell.to_i - 1
end
end
extend Dry::Initializer
option :line, proc(&:to_s)