fix a bug: display incorrect line number

* displayed the incorrect line number if markers are saved in various
  buffers