diff options
author | Julian Aron Prenner <julian@linux4you.it> | 2014-01-15 15:27:06 +0100 |
---|---|---|
committer | Julian Aron Prenner <julian@linux4you.it> | 2014-01-15 15:27:06 +0100 |
commit | 213e9070446b60c9e6ad7140a6063cd957f241e4 (patch) | |
tree | 84020202d4daa8df2db3b2533e8963217bb46c49 /screen.cpp | |
parent | c8d5131a42b8117987d2a278d69edb21a7cf9383 (diff) | |
parent | 370b47d23f3cfde3e385c2268adb95229f0f7ed7 (diff) |
Merge remote-tracking branch 'upstream/master' into bind_mode
Conflicts:
builtin.cpp
reader.cpp
share/functions/fish_default_key_bindings.fish
Diffstat (limited to 'screen.cpp')
-rw-r--r-- | screen.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -668,7 +668,7 @@ static void s_move(screen_t *s, data_buffer_t *b, int new_x, int new_y) /** Set the pen color for the terminal */ -static void s_set_color(screen_t *s, data_buffer_t *b, int c) +static void s_set_color(screen_t *s, data_buffer_t *b, highlight_spec_t c) { scoped_buffer_t scoped_buffer(b); @@ -1215,7 +1215,8 @@ static screen_layout_t compute_layout(screen_t *s, // If the command wraps, and the prompt is not short, place the command on its own line. // A short prompt is 33% or less of the terminal's width. const size_t prompt_percent_width = (100 * left_prompt_width) / screen_width; - if (left_prompt_width + first_command_line_width + 1 > screen_width && prompt_percent_width > 33) { + if (left_prompt_width + first_command_line_width + 1 > screen_width && prompt_percent_width > 33) + { result.prompts_get_own_line = true; } @@ -1232,7 +1233,7 @@ void s_write(screen_t *s, const wcstring &right_prompt, const wcstring &commandline, size_t explicit_len, - const int *colors, + const highlight_spec_t *colors, const int *indent, size_t cursor_pos, size_t sel_start_pos, |