wellle / targets.vim

Vim plugin that provides additional text objects
MIT License
2.56k stars 53 forks source link

Inconsistent behavior in default seek ranges #264

Open pedro757 opened 3 years ago

pedro757 commented 3 years ago

I have this javascript code. I'm trying to change the content of the Try Block from the bigining of the line, so i use c2iB see the outputs in the comments:

module.exports = app => {
  app.get('/something', async (req, res) => { // Changes from this "{"

    try { // expected from this "{"
      const { data: { data } } = await axios.post('') // Here I type _c2iB
    } // Expected to this "}"

  }) // To this "}"
}

I'm using the default seek ranges

let g:targets_seekRanges = 'cc cr cb cB lc ac Ac lr rr ll lb ar ab lB Ar aB Ab AB rb al rB Al bb aa bB Aa BB AA'