mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
Merge pull request #22658 from clason/help-marks
fix(help): force tree reparse after local addition insertion docs(help): consistent headers for local additions
This commit is contained in:
@@ -169,8 +169,8 @@ DEVELOPING NVIM
|
|||||||
|dev-style| Development style guidelines
|
|dev-style| Development style guidelines
|
||||||
|debug.txt| Debugging Vim itself
|
|debug.txt| Debugging Vim itself
|
||||||
|
|
||||||
*standard-plugin-list*
|
|
||||||
Standard plugins ~
|
Standard plugins ~
|
||||||
|
*standard-plugin-list*
|
||||||
|matchit.txt| Extended |%| matching
|
|matchit.txt| Extended |%| matching
|
||||||
|pi_gzip.txt| Reading and writing compressed files
|
|pi_gzip.txt| Reading and writing compressed files
|
||||||
|pi_health.txt| Healthcheck framework
|
|pi_health.txt| Healthcheck framework
|
||||||
@@ -181,7 +181,8 @@ Standard plugins ~
|
|||||||
|pi_tar.txt| Tar file explorer
|
|pi_tar.txt| Tar file explorer
|
||||||
|pi_zip.txt| Zip archive explorer
|
|pi_zip.txt| Zip archive explorer
|
||||||
|
|
||||||
LOCAL ADDITIONS: *local-additions*
|
Local additions ~
|
||||||
|
*local-additions*
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
*bars* Bars example
|
*bars* Bars example
|
||||||
|
@@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
#include "nvim/ascii.h"
|
#include "nvim/ascii.h"
|
||||||
#include "nvim/buffer.h"
|
#include "nvim/buffer.h"
|
||||||
|
#include "nvim/change.h"
|
||||||
#include "nvim/charset.h"
|
#include "nvim/charset.h"
|
||||||
#include "nvim/cmdexpand.h"
|
#include "nvim/cmdexpand.h"
|
||||||
#include "nvim/ex_cmds.h"
|
#include "nvim/ex_cmds.h"
|
||||||
@@ -699,6 +700,8 @@ void fix_help_buffer(void)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int lnum_start = lnum;
|
||||||
|
|
||||||
// Go through all directories in 'runtimepath', skipping
|
// Go through all directories in 'runtimepath', skipping
|
||||||
// $VIMRUNTIME.
|
// $VIMRUNTIME.
|
||||||
char *p = p_rtp;
|
char *p = p_rtp;
|
||||||
@@ -829,6 +832,11 @@ void fix_help_buffer(void)
|
|||||||
}
|
}
|
||||||
xfree(rt);
|
xfree(rt);
|
||||||
}
|
}
|
||||||
|
linenr_T appended = lnum - lnum_start;
|
||||||
|
if (appended) {
|
||||||
|
mark_adjust(lnum_start + 1, (linenr_T)MAXLNUM, appended, 0L, kExtmarkUndo);
|
||||||
|
changed_lines_buf(curbuf, lnum_start + 1, lnum_start + 1, appended);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user