lib/multi-wrap-guide-view.js
// Line breaks text at guide near the given column, if one exists.
Line breaks text at guide near the given column, if one exists.
Line breaks text at guide near the given column if one exists .
lineBreak (column) {
    if (atom.workspace.getActiveTextEditor() !== this.editor) return
    for (const i of [column, column - 1, column + 1, column - 2, column + 2]) {
      const index = this.columns.indexOf(i)
      if (index < 0) continue
      const { preferredLineLength } = atom.config.settings.editor
      atom.config.settings.editor.preferredLineLength = i
      const editor = atom.workspace.getActiveTextEditor()
      const view = atom.views.getView(editor)
      atom.commands.dispatch(view, 'line-length-break:break')
      atom.packages.activatePackage('line-length-break').then(pkg => {
        atom.config.settings.editor.preferredLineLength = preferredLineLength
      })
      break
    }
  }
lineBreak ( column ) { if ( atom . workspace . getActiveTextEditor ( ) !== this . editor ) return for ( const i of [ column , column - 1 , column + 1 , column - 2 , column + 2 ] ) { const index = this . columns . indexOf ( i ) if ( index < 0 ) continue const { preferredLineLength } = atom . config . settings . editor atom . config . settings . editor . preferredLineLength = i const editor = atom . workspace . getActiveTextEditor ( ) const view = atom . views . getView ( editor ) atom . commands . dispatch ( view , 'line-length-break:break' ) atom . packages . activatePackage ( 'line-length-break' ) . then ( pkg => { atom . config . settings . editor . preferredLineLength = preferredLineLength } ) break } }
Line breaks text at guide near the given column, if one exists.
Line breaks text at guide near the given column if one exists .