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
After using this command by selecting from the end of the buffer, immediately pressing a letter will insert the letter on the screen and print the crash message right after the letter.
The cursor jumps back to the end of the buffer.
I can't move the cursor with the arrow keys or C-f and C-b, but M-< and M-> work. C-p and C-n don't work either.
The copying will work. Pasting will insert the text, but it will not get syntax highlighting.
Pressing backspace will move the cursor back through the pasted text without removing from the screen.
Once I "backspace" all the way though the pasted text back into the pre-paste text, there are no more errors, and it won't crash.
Shortest steps to reproduce:
Bind the keys.
Press C-p to go back to previous command. Now at end of buffer.
Press C-SPC to being selection. Move cursor towards beginning of line.
Press M-w to copy. Cursor jumps back to end of buffer.
Press C-y to insert the copied text. Pasted text is shown on screen without syntax coloring. Cursor is still at end of buffer.
Press a to insert a at end of line. "a" inserted without color. Fish crashes with above message.
If instead jump to beginning of line with M-< and then press a, "a" is inserted with the correct error color, and then Fish crashes.
The text was updated successfully, but these errors were encountered:
okamsn
changed the title
Trying to copy from end of buffer crashes on Fish 3.1.0
Copying from end of buffer crashes on Fish 3.1.0
Feb 28, 2020
Which happened when starting the selection at the end of the commandline.
In this case, selections still interact weirdly with autosuggestions (the
first character of the suggestion appears to be part of the selection
when it's not).
Fixesfish-shell#6680
(cherry-picked from commit 99851c0)
Hello,
Copying from the end of the buffer (after the last inserted character, the position reached by
M->
) causes Fish 3.1.0 to crash.This is on Xubuntu 20.04.
Output of
uname -a
:Linux lptp2 5.3.0-40-generic history function needs a man page #32-Ubuntu SMP Fri Jan 31 20:24:34 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Output of
echo $TERM
:xterm-256color
There are no third party customizations. That command did not affect the crash.
The crash:
fish: /build/fish-Wz1fgo/fish-3.1.0/src/parse_util.cpp:246: void parse_util_cmdsubst_extent(const wchar_t*, size_t, const wchar_t**, const wchar_t**): Assertion `cursor_pos <= bufflen' failed.
The bindings I am trying:
After using this command by selecting from the end of the buffer, immediately pressing a letter will insert the letter on the screen and print the crash message right after the letter.
C-f
andC-b
, butM-<
andM->
work.C-p
andC-n
don't work either.Shortest steps to reproduce:
C-p
to go back to previous command. Now at end of buffer.C-SPC
to being selection. Move cursor towards beginning of line.M-w
to copy. Cursor jumps back to end of buffer.C-y
to insert the copied text. Pasted text is shown on screen without syntax coloring. Cursor is still at end of buffer.a
to inserta
at end of line. "a" inserted without color. Fish crashes with above message.M-<
and then pressa
, "a" is inserted with the correct error color, and then Fish crashes.The text was updated successfully, but these errors were encountered: