You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When shifting lines, the smart cursor behaves inconsistently.
Consider the following example where I want to remove the last digit of each variable (i.e. the 1,2,3,4)
var1
var2
var3
var4
Here, I have the cursor at var1, press backspace, then down, and I would expect that the cursor lands on the end of the line. However, it lands between var and 2. So for the next removal, I need to press delete to delete the 2. However, when pressing down now, the cursor jumps to the end of line! So for removing the 3, I need to press backspace again.
This behaviour is inconsistend.
Solution: Either keep in the same column for both backspace of delete, or always move to end of line of we are at the end of line?
var1
var2
var3
var4
Put cursor to var1[CURSOR]. Remove with backspace. Then try to delete 2. etc
Versions
Spyder version: 5.1.1
Python version: N/A
Qt version: N/A
PyQt version: N/A
Operating System name/version: win/linux
The text was updated successfully, but these errors were encountered:
skjerns
changed the title
Smart cursor and backspace/delete-> inconsistend behaviour
Smart cursor and backspace/delete-> inconsistend behaviour when at end of line
Jul 1, 2024
Problem Description
When shifting lines, the smart cursor behaves inconsistently.
Consider the following example where I want to remove the last digit of each variable (i.e. the 1,2,3,4)
Here, I have the cursor at
var1
, press backspace, then down, and I would expect that the cursor lands on the end of the line. However, it lands betweenvar
and2
. So for the next removal, I need to pressdelete
to delete the2
. However, when pressing down now, the cursor jumps to the end of line! So for removing the3
, I need to press backspace again.This behaviour is inconsistend.
Solution: Either keep in the same column for both backspace of delete, or always move to end of line of we are at the end of line?
Put cursor to
var1[CURSOR]
. Remove with backspace. Then try to delete2
. etcVersions
The text was updated successfully, but these errors were encountered: