OnLinesArgs

Type Alias OnLinesArgs 

Source
pub type OnLinesArgs = (String, Buffer, u32, usize, usize, usize, usize, Option<usize>, Option<usize>);
Expand description

Arguments passed to the callback registered to on_lines. The (a, b, c, d, e, f, g, h, i) tuple represents:

  • a: the string literal "lines";
  • b: the Buffer that triggered the callback;
  • c: the value of the buffer-local b:changedtick variable;
  • d: first row that changed (0-indexed);
  • e: last row that was changed;
  • f: last row in the updated range;
  • g: byte count of previous contents;
  • h: deleted UTF-32 codepoints (if utf_sizes was true);
  • i: deleted UTF-16 codeunits (if utf_sizes was true);