cvs commit: src/lib/libedit refresh.c

Stefan Farfeleder stefanf at
Sun Dec 4 09:34:57 GMT 2005

stefanf     2005-12-04 09:34:56 UTC

  FreeBSD src repository

  Modified files:
    lib/libedit          refresh.c 
  Merge NetBSD's revision 1.27.  This bug can be observed eg. when browsing
  through the history in sh.
  | Refresh bug reported by Julien Torres:
  | going from:
  |     activate -verbose
  | to:
  |     reset -activation
  | results in:
  |     reset -activationverbose"
  | instead of:
  |     reset -activation
  | This is because we choose to insert "reset -" before the current line,
  | and the delete "e -" and insert "ion" in the appropriate place. The
  | cleareol code did not handle this case properly; we now cleareol to
  | the maximum number of characters of the first difference, the second
  | difference and the difference in line length.
  Revision  Changes    Path
  1.11      +34 -12    src/lib/libedit/refresh.c

More information about the cvs-src mailing list