aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/search.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-08-19 12:37:58 +0200
committerbfredl <bjorn.linse@gmail.com>2022-08-19 22:48:03 +0200
commit6adc2ae7e0d86f7b2a4292a666eeaa50a1473915 (patch)
treeea1ec2a1816fb4dbbb034b4851c39eb389d9310b /src/nvim/search.c
parentb2f979b30beac67906b2dd717fcb6a34f46f5e54 (diff)
downloadrneovim-6adc2ae7e0d86f7b2a4292a666eeaa50a1473915.tar.gz
rneovim-6adc2ae7e0d86f7b2a4292a666eeaa50a1473915.tar.bz2
rneovim-6adc2ae7e0d86f7b2a4292a666eeaa50a1473915.zip
refactor: move statusline code from buffer.c and [draw]screen.c to new file
problem: code for drawing statusline is arbitrarily spreadout between drawscreen.c, screen.c and buffer.c solution: move it to a new file statusline.c - rename archaic internal name "status match" to public name "wildmenu" - showruler() does not show the ruler. it show anything which displays info about the cursor. Rename it accordingy.
Diffstat (limited to 'src/nvim/search.c')
-rw-r--r--src/nvim/search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c
index c820817a71..c53d955974 100644
--- a/src/nvim/search.c
+++ b/src/nvim/search.c
@@ -2423,7 +2423,7 @@ void showmatch(int c)
curwin->w_cursor = mpos; // move to matching char
*so = 0; // don't use 'scrolloff' here
*siso = 0; // don't use 'sidescrolloff' here
- showruler(false);
+ show_cursor_info(false);
setcursor();
ui_flush();
// Restore dollar_vcol(), because setcursor() may call curs_rows()