• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Revision65a3e7bb12b7fc7cc4130536fb926dbd77b6ac87 (tree)
Time2024-01-16 04:15:04
AuthorChristian Brabandt <cb@256b...>
CommiterChristian Brabandt

Log Message

runtime(doc): Replace non-breaking space with normal space (#13868)

Commit: https://github.com/vim/vim/commit/eb3475df0d927a178789cf8e7fc4983932e1cdbe
Author: Yegappan Lakshmanan <4298407+yegappan@users.noreply.github.com>
Date: Mon Jan 15 11:08:25 2024 -0800

runtime(doc): Replace non-breaking space with normal space (https://github.com/vim/vim/issues/13868)
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>

Change Summary

Incremental Difference

diff -r 8ae680be2a51 -r 65a3e7bb12b7 runtime/doc/builtin.txt
--- a/runtime/doc/builtin.txt Sun Jan 14 21:15:03 2024 +0100
+++ b/runtime/doc/builtin.txt Mon Jan 15 20:15:04 2024 +0100
@@ -6114,8 +6114,8 @@
61146114
61156115 For each match, a |Dict| with the following items is returned:
61166116 byteidx starting byte index of the match
6117-    lnum line number where there is a match
6118-    text matched string
6117+ lnum line number where there is a match
6118+ text matched string
61196119 Note that there can be multiple matches in a single line.
61206120
61216121 This function works only for loaded buffers. First call
@@ -6126,19 +6126,19 @@
61266126 empty |List| is returned.
61276127
61286128 Examples: >
6129-    " Assuming line 3 in buffer 5 contains "a"
6130-    :echo matchbufline(5, '\<\k\+\>', 3, 3)
6131-    [{'lnum': 3, 'byteidx': 0, 'text': 'a'}]
6132-    " Assuming line 4 in buffer 10 contains "tik tok"
6133-    :echo matchbufline(10, '\<\k\+\>', 1, 4)
6134-    [{'lnum': 4, 'byteidx': 0, 'text': 'tik'}, {'lnum': 4, 'byteidx': 4, 'text': 'tok'}]
6129+ " Assuming line 3 in buffer 5 contains "a"
6130+ :echo matchbufline(5, '\<\k\+\>', 3, 3)
6131+ [{'lnum': 3, 'byteidx': 0, 'text': 'a'}]
6132+ " Assuming line 4 in buffer 10 contains "tik tok"
6133+ :echo matchbufline(10, '\<\k\+\>', 1, 4)
6134+ [{'lnum': 4, 'byteidx': 0, 'text': 'tik'}, {'lnum': 4, 'byteidx': 4, 'text': 'tok'}]
61356135 <
61366136 If {submatch} is present and is v:true, then submatches like
6137- "\1", "\2", etc. are also returned.  Example: >
6138-    " Assuming line 2 in buffer 2 contains "acd"
6139-    :echo matchbufline(2, '\(a\)\?\(b\)\?\(c\)\?\(.*\)', 2, 2
6137+ "\1", "\2", etc. are also returned. Example: >
6138+ " Assuming line 2 in buffer 2 contains "acd"
6139+ :echo matchbufline(2, '\(a\)\?\(b\)\?\(c\)\?\(.*\)', 2, 2
61406140 \ {'submatches': v:true})
6141-    [{'lnum': 2, 'byteidx': 0, 'text': 'acd', 'submatches': ['a', '', 'c', 'd', '', '', '', '', '']}]
6141+ [{'lnum': 2, 'byteidx': 0, 'text': 'acd', 'submatches': ['a', '', 'c', 'd', '', '', '', '', '']}]
61426142 < The "submatches" List always contains 9 items. If a submatch
61436143 is not found, then an empty string is returned for that
61446144 submatch.
@@ -6296,10 +6296,10 @@
62966296 "submatches" is set to v:true in {dict}.
62976297
62986298 Example: >
6299-    :echo matchstrlist(['tik tok'], '\<\k\+\>')
6300-    [{'idx': 0, 'byteidx': 0, 'text': 'tik'}, {'idx': 0, 'byteidx': 4, 'text': 'tok'}]
6301-    :echo matchstrlist(['a', 'b'], '\<\k\+\>')
6302-    [{'idx': 0, 'byteidx': 0, 'text': 'a'}, {'idx': 1, 'byteidx': 0, 'text': 'b'}]
6299+ :echo matchstrlist(['tik tok'], '\<\k\+\>')
6300+ [{'idx': 0, 'byteidx': 0, 'text': 'tik'}, {'idx': 0, 'byteidx': 4, 'text': 'tok'}]
6301+ :echo matchstrlist(['a', 'b'], '\<\k\+\>')
6302+ [{'idx': 0, 'byteidx': 0, 'text': 'a'}, {'idx': 1, 'byteidx': 0, 'text': 'b'}]
63036303 <
63046304 If "submatches" is present and is v:true, then submatches like
63056305 "\1", "\2", etc. are also returned. Example: >
Show on old repository browser