Sha256: 253b4b61b2e88abb2e5ef75be2c3d80d022245dd114ef783aaf8309653e627ad

Contents?: true

Size: 303 Bytes

Versions: 1

Compression:

Stored size: 303 Bytes

Contents

module VER
  class Status
    class Position < Label
      def setup
        register :position
      end

      def to_s
        "%4d,%3d" % [
          buffer.count('1.0', 'insert', :lines) + 1,
          buffer.count('insert linestart', 'insert', :displaychars)
        ]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ver-2010.08 lib/ver/status/position.rb