A RetroSearch Logo

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

Search Query:

Showing content from https://github.com/neovim/neovim/commit/9d53791cf8aa170f4a3b569ddbae43d6f1132af0 below:

update cursor when signcol changes · neovim/neovim@9d53791 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+17

-9

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+17

-9

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

@@ -326,6 +326,18 @@ void redraw_buf_status_later(buf_T *buf)

326 326

}

327 327

}

328 328 329 +

void redraw_win_signcol(win_T *wp)

330 +

{

331 +

// If we can compute a change in the automatic sizing of the sign column

332 +

// under 'signcolumn=auto:X' and signs currently placed in the buffer, better

333 +

// figuring it out here so we can redraw the entire screen for it.

334 +

int scwidth = wp->w_scwidth;

335 +

wp->w_scwidth = win_signcol_count(wp);

336 +

if (wp->w_scwidth != scwidth) {

337 +

changed_line_abv_curs_win(wp);

338 +

}

339 +

}

340 + 329 341

/// Redraw the parts of the screen that is marked for redraw.

330 342

///

331 343

/// Most code shouldn't call this directly, rather use redraw_later() and

@@ -790,12 +802,6 @@ static void win_update(win_T *wp, Providers *providers)

790 802

linenr_T mod_bot = 0;

791 803

int save_got_int;

792 804 793 - 794 -

// If we can compute a change in the automatic sizing of the sign column

795 -

// under 'signcolumn=auto:X' and signs currently placed in the buffer, better

796 -

// figuring it out here so we can redraw the entire screen for it.

797 -

wp->w_scwidth = win_signcol_count(wp);

798 - 799 805

type = wp->w_redr_type;

800 806 801 807

if (type >= NOT_VALID) {

@@ -817,6 +823,8 @@ static void win_update(win_T *wp, Providers *providers)

817 823

return;

818 824

}

819 825 826 +

redraw_win_signcol(wp);

827 + 820 828

init_search_hl(wp);

821 829 822 830

/* Force redraw when width of 'number' or 'relativenumber' column

Original file line number Diff line number Diff line change

@@ -446,7 +446,7 @@ describe('Signs', function()

446 446

{1:>>>>>>>>}{6: 1 }a |

447 447

{2: }{6: 2 }b |

448 448

{2: }{6: 3 }c |

449 -

{2: }{6:^ 4 } |

449 +

{2: }{6: 4 }^ |

450 450

{0:~ }|

451 451

{0:~ }|

452 452

{0:~ }|

@@ -468,7 +468,7 @@ describe('Signs', function()

468 468

{1:>>>>>>>>>>}{6: 1 }a |

469 469

{2: }{6: 2 }b |

470 470

{2: }{6: 3 }c |

471 -

{2: ^ }{6: 4 } |

471 +

{2: }{6: 4 }^ |

472 472

{0:~ }|

473 473

{0:~ }|

474 474

{0:~ }|

@@ -512,7 +512,7 @@ describe('Signs', function()

512 512

{1:>>}{6: 1 }a |

513 513

{2: }{6: 2 }b |

514 514

{2: }{6: 3 }c |

515 -

{2: }{6: ^4 } |

515 +

{2: }{6: 4 }^ |

516 516

{0:~ }|

517 517

{0:~ }|

518 518

{0:~ }|

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