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
From the discourse thread, I understand that ctrl+t performs a character transpose. Perhaps this should be a no-op if there's only one character on the line?
The text was updated successfully, but these errors were encountered:
Easiest fix is to (ironically) transpose the first two lines of edit_transpose_chars(buf::IOBuffer) to be
function LineEdit.edit_transpose_chars(buf::IOBuffer)
eof(buf) &&char_move_left(buf)
position(buf) ==0&&returnfalsechar_move_left(buf)
pos =position(buf)
a, b =read(buf, Char), read(buf, Char)
seek(buf, pos)
write(buf, b, a)
returntrueend
While this will move the cursor left by one even when it doesn't transpose anything, that does actually matches the behavior of Emac's ^T when used in a buffer of just a single letter and the point is at the end of the line.
Edit: giving a shot at implementing this; seems like a fun first Julia PR! :)
Steps to reproduce
From the discourse thread, I understand that
ctrl+t
performs a character transpose. Perhaps this should be a no-op if there's only one character on the line?The text was updated successfully, but these errors were encountered: