cfjedimaster / brackets-jshint

Adds JSHint support to Brackets
MIT License
130 stars 41 forks source link

Cursor is placed one character to the right #44

Closed dandv closed 10 years ago

dandv commented 10 years ago

After double-clicking on a warning, the cursor lands one character to the right of where the troublesome statement starts. Example:

console.log('food'); console.log('bar');

The cursor will be under 'o', not under 'c'.

cfjedimaster commented 10 years ago

I "fixed" this by just subtracting one from the char field - but I noticed in some cases JSHint was matching in the middle of a keyword. So it won't be perfect.