function rebaseHistSelSingle(pos, from, to, diff) {
  if (to < pos.line) {
    pos.line += diff
  } else if (from < pos.line) {
    pos.line = from
    pos.ch = 0
  }
}
function rebaseHistSelSingle(pos, from, to, diff) {
  if (to < pos.line) {
    pos.line += diff
  } else if (from < pos.line) {
    pos.line = from
    pos.ch = 0
  }
}
function rebaseHistSelSingle ( pos , from , to , diff ) { if ( to < pos . line ) { pos . line += diff } else if ( from < pos . line ) { pos . line = from pos . ch = 0 } }
Rebasing/resetting history to deal with externally-sourced changes
Rebasing / resetting history to deal with externally - sourced changes
rebase the histsel of a single line