Home Download Buy Blog Forum Support

bug: move to eol / bol are borked when wordwrap enabled!

bug: move to eol / bol are borked when wordwrap enabled!

Postby mindlube_2 on Sat Mar 09, 2013 12:23 am

1. Turn on View | word wrap
2. Go to a long line that's getting wrapped
3. Hit Home/End keys or whatever you have bound to move_to eol and move_to bol.

Notice the cursor moves to whatever arbitrary point in the middle of the line that happened to get wrapped. Which is likely to be in the middle of a string or a middle of word, or someplace arbitrary and not useful. i.e. it's forgetting where the real eol and bol is. Please fix this ; it's useless with word-wrap turned on. Thanks!

using ST3 B3017 on Windows
have observed this in an html file and a Ruby file. I assume all file types have the problem.
mindlube_2
 
Posts: 2
Joined: Sat Mar 09, 2013 12:17 am

ST3 Re: bug: move to eol / bol are borked when wordwrap enab

Postby mindlube on Wed Mar 13, 2013 9:39 pm

I am going to keep raising this bug until it's fixed or at least acknowledged.

I'm not aware of any other text editor that behaves in a such an odd manner when word wrap is turned on as SublimeText does. All of these that I have tested behave correctly and as expected (they dont forget where is the EOL and BOL when word wrap is turned on):

Emacs, TextMate, TextEdit

Also dismayed that a bug report disappears to page 4+ of support requests. For commercial paid software, this is poor support. Get an issue tracking system.

ST3 build 3020 on OS X
mindlube
 
Posts: 35
Joined: Mon Feb 18, 2013 10:30 pm

Re: bug: move to eol / bol are borked when wordwrap enabled!

Postby bizoo on Wed Mar 13, 2013 10:03 pm

NOT a bug, if you don't like the way it is, just change it:
http://www.sublimetext.com/forum/viewtopic.php?f=3&t=4213&start=0&hilit=hardeol
Code: Select all
    { "keys": ["home"], "command": "move_to", "args": {"to": "hardbol", "extend": false} },
    { "keys": ["end"], "command": "move_to", "args": {"to": "hardeol", "extend": false} },
bizoo
 
Posts: 889
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: bug: move to eol / bol are borked when wordwrap enabled!

Postby jps on Wed Mar 13, 2013 10:59 pm

bizoo is correct, this is working as intended.

Pressing end will move the caret to the end of the virtual line (i.e., it moves horizontally as far to the right as possible), as virtually every other application does when word wrapping.
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: bug: move to eol / bol are borked when wordwrap enabled!

Postby mindlube on Thu Mar 14, 2013 12:53 am

Awesome- thanks & I apologize for the snarky sounding post. I dont agree that this is how is most text editors work (at least in my experience). Will try the hardbol/hardeol right now. Cheers
mindlube
 
Posts: 35
Joined: Mon Feb 18, 2013 10:30 pm

Re: bug: move to eol / bol are borked when wordwrap enabled!

Postby mindlube on Thu Mar 14, 2013 12:58 am

Works like a charm. Again- I was so wrong, not a bug. I would mark the thread as [solved] but cannot retrieve password from the forums :o
mindlube
 
Posts: 35
Joined: Mon Feb 18, 2013 10:30 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 21 guests