Skip to content

COLUMNS incorrect for the first prompt in a session #4141

@soumya92

Description

@soumya92

fish, version 2.6.0
macOS 10.12.5 (16F73)
iTerm2 Build 3.0.15

With a fish_prompt of

function fish_prompt
    echo "$COLUMNS > "
end

I see some weird behaviour. Specifically, the first prompt of any fish invocation prints 80, while subsequent prompts print 120 (actual width).

This happens for new tabs, new windows, and even nested fish shell invocations.

Pressing return, resizing the window (in either dimension), pasting something (presumably because of the syntax highlighting), or even pkill -SIGWINCH fish in another session, all fix the prompt.

I have a "-d 3" log of fish, where all I do is press return to update columns and then quit.

Metadata

Metadata

Assignees

Labels

bugSomething that's not working as intended

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions