{"action":"created","issue":{"url":"https://api.github.com/repos/ajaxorg/ace/issues/2750","labels_url":"https://api.github.com/repos/ajaxorg/ace/issues/2750/labels{/name}","comments_url":"https://api.github.com/repos/ajaxorg/ace/issues/2750/comments","events_url":"https://api.github.com/repos/ajaxorg/ace/issues/2750/events","html_url":"https://github.com/ajaxorg/ace/issues/2750","id":115230986,"number":2750,"title":"Strange line jumps when using arrow keys to move cursor","user":{"login":"thomasbiesaart","id":13708940,"avatar_url":"https://avatars.githubusercontent.com/u/13708940?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasbiesaart","html_url":"https://github.com/thomasbiesaart","followers_url":"https://api.github.com/users/thomasbiesaart/followers","following_url":"https://api.github.com/users/thomasbiesaart/following{/other_user}","gists_url":"https://api.github.com/users/thomasbiesaart/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasbiesaart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasbiesaart/subscriptions","organizations_url":"https://api.github.com/users/thomasbiesaart/orgs","repos_url":"https://api.github.com/users/thomasbiesaart/repos","events_url":"https://api.github.com/users/thomasbiesaart/events{/privacy}","received_events_url":"https://api.github.com/users/thomasbiesaart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-05T08:18:30Z","updated_at":"2015-11-13T21:58:51Z","closed_at":null,"body":"Sometimes when you move the cursor using the arrow keys it will make an unexpected jump. I tested this in the kitchen sink too and I find the same behaviour. It seems to be related to soft tabs.\r\n\r\nReproduce:\r\n\r\n    Envirionment:\r\n    - Site: https://ace.c9.io/build/kitchen-sink.html\r\n    - Code: Math.konijn{s.db_host, tonumber{s.db_port}, s.db_name, s.db_user, s.db_pass, d, s.db_servicenameblablaa};\r\n    - Tab Size: 3\r\n    - Soft Tabs: on\r\n    Steps:\r\n    - Set the cursor to the start of the line\r\n    - Hold the right arrow key and watch for the jump after `Math.k`"},"comment":{"url":"https://api.github.com/repos/ajaxorg/ace/issues/comments/156570994","html_url":"https://github.com/ajaxorg/ace/issues/2750#issuecomment-156570994","issue_url":"https://api.github.com/repos/ajaxorg/ace/issues/2750","id":156570994,"user":{"login":"nightwing","id":341801,"avatar_url":"https://avatars.githubusercontent.com/u/341801?v=3","gravatar_id":"","url":"https://api.github.com/users/nightwing","html_url":"https://github.com/nightwing","followers_url":"https://api.github.com/users/nightwing/followers","following_url":"https://api.github.com/users/nightwing/following{/other_user}","gists_url":"https://api.github.com/users/nightwing/gists{/gist_id}","starred_url":"https://api.github.com/users/nightwing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nightwing/subscriptions","organizations_url":"https://api.github.com/users/nightwing/orgs","repos_url":"https://api.github.com/users/nightwing/repos","events_url":"https://api.github.com/users/nightwing/events{/privacy}","received_events_url":"https://api.github.com/users/nightwing/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T21:58:51Z","updated_at":"2015-11-13T21:58:51Z","body":"I couldn't reproduce this issue.\r\nmaybe there was a hidden character in the code example, that got filtered out by github.\r\n\r\nCould you try running to see  what characters there are in the editor.\r\n\r\n```js\r\neditor.getValue().replace(/[\\x00-\\x19\\x7f-\\uffff]/g, function(e) {\r\n    return \"\\\\u{\"+e.charCodeAt(0).toString(16) + \"}\" \r\n})\r\n```"}}