Author Topic: SE opens recent files at odd location  (Read 5740 times)

b

  • Senior Community Member
  • Posts: 325
  • Hero Points: 26
Re: SE opens recent files at odd location
« Reply #15 on: June 11, 2019, 08:37:27 PM »
Very odd.   I've had several files that if my cursor is towards the end of a line and I switch projects, or open SE to that project, it will frequently exhibit that nasty behavior of placing the cursor at position 6 in the viewing window and shift the source over.   It seems to be very obstinate about that position.  (Are you sure you haven't programmed SE with an attitude? :-)

Seriously, it does get very annoying.

I went through several different workspace switches and captured the following:

(remaining is character in line after the cursor to end of line not including trailing newlines)

One project/workspace:
Cursor placed at row 1, col 3 (physically line 48, col 19) w/ 10 characters remaining after cursor
Cursor placed at row 1, col 5 (physically line 31, col 17) w/ 12 characters remaining
after cursor
Cursor placed at row 1, col 6 (physically line 294, col 25) w/ 21 characters remaining after cursor
Cursor placed at row 1, col 6 (physically line 735, col 42) w/ 0 characters remaining after cursor
Cursor placed at row 1, col 6 (physically line 146, col 17) w/ 0 characters ramaining after cursor

Another project/workspace:
Cursor placed at row 1, col 6 (physically line 110, col 68) w/ 7 characters remaining after cursor
Cursor placed at row 1, col 6 (physically line 37, col 19) w/ 43 characters remaining after cursor

The above was just switching workspaces within SE.   Closing and reopening SE and repeating the steps of opening different workspaces with multiple windows open finds at least some windows that exhibit this issue.
My workaround (which is rather annoying) is to vim-key ^ to beginning of line and then resume my editing for each file that does this.


Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6866
  • Hero Points: 528
Re: SE opens recent files at odd location
« Reply #16 on: June 12, 2019, 02:31:03 AM »
After banging on this some, I hit a test case where I get some unnecessary horizontal and vertical scrolling. I'm not sure why the issue only happens for some files and not others. Almost seems random. So far, I'm only seeing this when switching workspaces but not if I restart SlickEdit. I'll let you know what I find.

b

  • Senior Community Member
  • Posts: 325
  • Hero Points: 26
Re: SE opens recent files at odd location
« Reply #17 on: June 12, 2019, 05:33:28 PM »
Agreed in that it is inconsistent in that it doesn't do it all the time.  However, it does it with enough frequency that it is annoying.   I look forward to your findings.

SlickEdit Support

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 384
  • Hero Points: 29
Re: SE opens recent files at odd location
« Reply #18 on: June 13, 2019, 04:07:28 PM »
PM sent.