aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-03-26 23:46:14 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-03-26 23:59:01 -0400
commitc95fdcd12740795ce2e0209e0f1d796a49f300d5 (patch)
tree6fa9f3b942681b2c3b29f66008d1d322b0836474
parent281c011d44a5f845d4c5d9cce0d2fc513f70483b (diff)
downloadrneovim-c95fdcd12740795ce2e0209e0f1d796a49f300d5.tar.gz
rneovim-c95fdcd12740795ce2e0209e0f1d796a49f300d5.tar.bz2
rneovim-c95fdcd12740795ce2e0209e0f1d796a49f300d5.zip
vim-patch:8.0.1528: dead code found
Problem: Dead code found. Solution: Remove the useless lines. (CodeAi, closes vim/vim#2656) https://github.com/vim/vim/commit/81226e03102dd00b7cdce0e00775e1e30462f9a6
-rw-r--r--src/nvim/screen.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index 28a1b65fff..edddfd8ed3 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -6371,14 +6371,12 @@ void grid_del_lines(ScreenGrid *grid, int row, int line_count, int end, int col,
}
-/*
- * show the current mode and ruler
- *
- * If clear_cmdline is TRUE, clear the rest of the cmdline.
- * If clear_cmdline is FALSE there may be a message there that needs to be
- * cleared only if a mode is shown.
- * Return the length of the message (0 if no message).
- */
+// Show the current mode and ruler.
+//
+// If clear_cmdline is TRUE, clear the rest of the cmdline.
+// If clear_cmdline is FALSE there may be a message there that needs to be
+// cleared only if a mode is shown.
+// Return the length of the message (0 if no message).
int showmode(void)
{
int need_clear;