mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Removed some debugging code used in determining autosuggestion truncation
Fixed a busted link in the function doc
This commit is contained in:
parent
ccb157c7a3
commit
2628da4a59
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ will write <code>hello</code> whenever the user enters \c hi.
|
|||
If the user enters any additional arguments after the function, they
|
||||
are inserted into the environment <a href="index.html#variables-arrays">variable array</a> argv.
|
||||
|
||||
By using one of the event handler switches, a function can be made to run automatically at specific events. The user may generate new events using the <a href='#emit">emit</a> builtin. Fish generates the following named events:
|
||||
By using one of the event handler switches, a function can be made to run automatically at specific events. The user may generate new events using the <a href="#emit">emit</a> builtin. Fish generates the following named events:
|
||||
|
||||
- \c fish_prompt, which is emitted whenever a new fish prompt is about to be displayed
|
||||
- \c fish_command_not_found, which is emitted whenever a command lookup failed
|
||||
|
|
|
@ -1154,7 +1154,7 @@ static screen_layout_t compute_layout(screen_t *s,
|
|||
bool done = false;
|
||||
|
||||
/* Case 1 */
|
||||
if (! done && left_prompt_width + right_prompt_width + first_command_line_width + autosuggestion_total_width + 10 < screen_width)
|
||||
if (! done && left_prompt_width + right_prompt_width + first_command_line_width + autosuggestion_total_width < screen_width)
|
||||
{
|
||||
result.left_prompt = left_prompt;
|
||||
result.left_prompt_space = left_prompt_width;
|
||||
|
|
Loading…
Reference in a new issue