diff options
author | Yorick Peterse <git@yorickpeterse.com> | 2021-10-07 00:31:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-06 16:31:14 -0600 |
commit | c61a3865eea21f87ac17719ba226ad556b5a11a6 (patch) | |
tree | 6dea42e9e90c444896d24089a5c63bcef85de621 /runtime | |
parent | e06936125a628d8a61069f5fbce68394292db4df (diff) | |
download | rneovim-c61a3865eea21f87ac17719ba226ad556b5a11a6.tar.gz rneovim-c61a3865eea21f87ac17719ba226ad556b5a11a6.tar.bz2 rneovim-c61a3865eea21f87ac17719ba226ad556b5a11a6.zip |
fix: set cursorlineopt=number in terminal mode (#15493)
When entering terminal mode, cursorlineopt is no longer entirely
disabled. Instead, it's set to `number`. Doing so ensures that users
using `set cursorline` combined with `set cursorlineopt=number` have
consistent highlighting of the line numbers, instead of this being
disabled when entering terminal mode.
Co-authored-by: Gregory Anders <greg@gpanders.com>
Co-authored-by: Sean Dewar <seandewar@users.noreply.github.com>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/nvim_terminal_emulator.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/doc/nvim_terminal_emulator.txt b/runtime/doc/nvim_terminal_emulator.txt index 5ad69d1122..e83b17f9a0 100644 --- a/runtime/doc/nvim_terminal_emulator.txt +++ b/runtime/doc/nvim_terminal_emulator.txt @@ -53,7 +53,7 @@ next key is sent unless it is <C-N>. Use <C-\><C-N> to return to normal-mode. Terminal-mode forces these local options: - 'nocursorline' + 'cursorlineopt' = number 'nocursorcolumn' 'scrolloff' = 0 'sidescrolloff' = 0 @@ -171,7 +171,7 @@ program window A terminal window for the executed program. When "run" is The current window is used to show the source code. When gdb pauses the source file location will be displayed, if possible. A sign is used to -highlight the current position, using highlight group debugPC. +highlight the current position, using highlight group debugPC. If the buffer in the current window is modified, another window will be opened to display the current gdb position. @@ -222,7 +222,7 @@ Put focus on the gdb window and type: > run Vim will start running in the program window. Put focus there and type: > :help gui -Gdb will run into the ex_help breakpoint. The source window now shows the +Gdb will run into the ex_help breakpoint. The source window now shows the ex_cmds.c file. A red "1 " marker will appear in the signcolumn where the breakpoint was set. The line where the debugger stopped is highlighted. You can now step through the program. You will see the highlighting move as the |