A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/neovim/neovim/commit/28dadd5a54a67b467c08614670c65b0b5b23d247 below:

truncate when overwriting right half of a double-width char · neovim/neovim@28dadd5 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+7

-0

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+7

-0

lines changed Original file line number Diff line number Diff line change

@@ -5965,6 +5965,13 @@ void grid_puts_len(ScreenGrid *grid, char_u *text, int textlen, int row, int col

5965 5965

clear_next_cell = true;

5966 5966

}

5967 5967 5968 +

// When at the start of the text and overwriting the right half of a

5969 +

// two-cell character in the same grid, truncate that into a '>'.

5970 +

if (ptr == text && col > 0 && grid->chars[off][0] == 0) {

5971 +

grid->chars[off - 1][0] = '>';

5972 +

grid->chars[off - 1][1] = 0;

5973 +

}

5974 + 5968 5975

schar_copy(grid->chars[off], buf);

5969 5976

grid->attrs[off] = attr;

5970 5977

if (mbyte_cells == 2) {

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4