Skip to content

Commit 08e946f

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents d5218a8 + 27f5136 commit 08e946f

20 files changed

+201
-106
lines changed

.github/MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ runtime/ftplugin/debchangelog.vim @jamessan
153153
runtime/ftplugin/debcontrol.vim @jamessan
154154
runtime/ftplugin/debsources.vim @jamessan
155155
runtime/ftplugin/desktop.vim @e-kwsm
156+
runtime/ftplugin/dnsmasq.vim @dringsim
156157
runtime/ftplugin/dosbatch.vim @mrdubya
157158
runtime/ftplugin/editorconfig.vim @ribru17
158159
runtime/ftplugin/eiffel.vim @dkearns

runtime/doc/filetype.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*filetype.txt* For Vim version 9.1. Last change: 2024 Dec 04
1+
*filetype.txt* For Vim version 9.1. Last change: 2025 Feb 20
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -762,7 +762,7 @@ Options:
762762
You can also format quoted text with |gq|.
763763

764764
Local mappings:
765-
<LocalLeader>q or \\MailQuote
765+
<LocalLeader>q or \MailQuote
766766
Quotes the text selected in Visual mode, or from the cursor position
767767
to the end of the file in Normal mode. This means "> " is inserted in
768768
each line.

runtime/doc/popup.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*popup.txt* For Vim version 9.1. Last change: 2025 Jan 08
1+
*popup.txt* For Vim version 9.1. Last change: 2025 Feb 20
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -504,7 +504,7 @@ popup_menu({what}, {options}) *popup_menu()*
504504
\ mapping: 0,
505505
\ })
506506
< The current line is highlighted with a match using
507-
"PopupSelected", or "PmenuSel" if that is not defined.
507+
|hl-PopupSelected| which is linked to "PmenuSel" by default.
508508

509509
Use {options} to change the properties. Should at least set
510510
"callback" to a function that handles the selected item.
@@ -559,7 +559,7 @@ popup_notification({what}, {options}) *popup_notification()*
559559
\ close: 'click',
560560
\ padding: [0,1,0,1],
561561
\ })
562-
< The PopupNotification highlight group is used instead of
562+
< The |hl-PopupNotification| highlight group is used instead of
563563
WarningMsg if it is defined.
564564

565565
Without the |+timers| feature the popup will not disappear

runtime/doc/syntax.txt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*syntax.txt* For Vim version 9.1. Last change: 2025 Jan 20
1+
*syntax.txt* For Vim version 9.1. Last change: 2025 Feb 20
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -5831,8 +5831,8 @@ CursorLineSign Like SignColumn when 'cursorline' is set for the cursor line.
58315831
MatchParen Character under the cursor or just before it, if it
58325832
is a paired bracket, and its match. |pi_paren.txt|
58335833
*hl-MessageWindow*
5834-
MessageWindow Messages popup window used by `:echowindow`. If not defined
5835-
|hl-WarningMsg| is used.
5834+
MessageWindow Messages popup window used by `:echowindow`. Linked to
5835+
|hl-WarningMsg| by default.
58365836
*hl-ModeMsg*
58375837
ModeMsg 'showmode' message (e.g., "-- INSERT --").
58385838
*hl-MsgArea*
@@ -5872,10 +5872,13 @@ PmenuMatchSel Popup menu: Matched text in selected item. Applied in
58725872
combination with |hl-PmenuSel|.
58735873
*hl-ComplMatchIns*
58745874
ComplMatchIns Matched text of the currently inserted completion.
5875+
*hl-PopupSelected*
5876+
PopupSelected Popup window created with |popup_menu()|. Linked to
5877+
|hl-PmenuSel| by default.
58755878
*hl-PopupNotification*
58765879
PopupNotification
5877-
Popup window created with |popup_notification()|. If not
5878-
defined |hl-WarningMsg| is used.
5880+
Popup window created with |popup_notification()|. Linked to
5881+
|hl-WarningMsg| by default.
58795882
*hl-Question*
58805883
Question |hit-enter| prompt and yes/no questions.
58815884
*hl-QuickFixLine*

runtime/doc/tags

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8299,6 +8299,7 @@ hl-PmenuSbar syntax.txt /*hl-PmenuSbar*
82998299
hl-PmenuSel syntax.txt /*hl-PmenuSel*
83008300
hl-PmenuThumb syntax.txt /*hl-PmenuThumb*
83018301
hl-PopupNotification syntax.txt /*hl-PopupNotification*
8302+
hl-PopupSelected syntax.txt /*hl-PopupSelected*
83028303
hl-Question syntax.txt /*hl-Question*
83038304
hl-QuickFixLine syntax.txt /*hl-QuickFixLine*
83048305
hl-Scrollbar syntax.txt /*hl-Scrollbar*

runtime/ftplugin/dnsmasq.vim

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
" Vim filetype plugin
2+
" Language: dnsmasq
3+
" Maintainer: dringsim <dringsim@qq.com>
4+
" Last Change: 2025-02-18
5+
6+
if exists('b:did_ftplugin')
7+
finish
8+
endif
9+
10+
" Behaves mostly just like cfg
11+
runtime! ftplugin/cfg.vim

runtime/ftplugin/dosini.vim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
" Vim filetype plugin file
22
" Language: Configuration File (ini file) for MS-DOS/MS Windows
3+
" Maintainer: This runtime file is looking for a new maintainer.
34
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
4-
" Latest Revision: 2008-07-09
5+
" Latest Revision: 2025 Feb 20
56

67
if exists("b:did_ftplugin")
78
finish
@@ -13,7 +14,7 @@ set cpo&vim
1314

1415
let b:undo_ftplugin = "setl com< cms< fo<"
1516

16-
setlocal comments=:; commentstring=;\ %s formatoptions-=t formatoptions+=croql
17+
setlocal comments=:;,:# commentstring=;\ %s formatoptions-=t formatoptions+=croql
1718

1819
let &cpo = s:cpo_save
1920
unlet s:cpo_save

runtime/ftplugin/mail.vim

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim filetype plugin file
22
" Language: Mail
33
" Maintainer: The Vim Project <https://github.com/vim/vim>
4-
" Last Change: 2023 Aug 10
4+
" Last Change: 2025 Feb 20
55
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
66

77
" Only do this when not done yet for this buffer
@@ -10,7 +10,7 @@ if exists("b:did_ftplugin")
1010
endif
1111
let b:did_ftplugin = 1
1212

13-
let b:undo_ftplugin = "setl modeline< tw< fo< comments<"
13+
let b:undo_ftplugin = "setl modeline< tw< fo< comments< commentstring<"
1414

1515
" Don't use modelines in e-mail messages, avoid trojan horses and nasty
1616
" "jokes" (e.g., setting 'textwidth' to 5).
@@ -24,6 +24,9 @@ endif
2424
" Set 'formatoptions' to break text lines and keep the comment leader ">".
2525
setlocal fo+=tcql
2626

27+
" Set commentstring to quoting sign ">" so comment shortcuts can be used to
28+
" edit quoted parts of mail
29+
setlocal commentstring=>\ %s
2730
" Add n:> to 'comments, in case it was removed elsewhere
2831
setlocal comments+=n:>
2932

src/drawline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3722,7 +3722,7 @@ win_line(
37223722
#endif
37233723
// Handle the case where we are in column 0 but not on the first
37243724
// character of the line and the user wants us to show us a
3725-
// special character (via 'listchars' option "precedes:<char>".
3725+
// special character (via 'listchars' option "precedes:<char>").
37263726
if (lcs_prec_todo != NUL
37273727
&& wp->w_p_list
37283728
&& (wp->w_p_wrap ? (wp->w_skipcol > 0 && wlv.row == 0)

src/edit.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ edit(
146146
#ifdef FEAT_CONCEAL
147147
int cursor_line_was_concealed;
148148
#endif
149+
int ins_completion = FALSE;
149150

150151
// Remember whether editing was restarted after CTRL-O.
151152
did_restart_edit = restart_edit;
@@ -636,10 +637,11 @@ edit(
636637
* and the cursor is still in the completed word. Only when there is
637638
* a match, skip this when no matches were found.
638639
*/
639-
if (ins_compl_active()
640-
&& pum_wanted()
641-
&& curwin->w_cursor.col >= ins_compl_col()
642-
&& ins_compl_has_shown_match())
640+
ins_completion = ins_compl_active()
641+
&& curwin->w_cursor.col >= ins_compl_col()
642+
&& ins_compl_has_shown_match();
643+
644+
if (ins_completion && pum_wanted())
643645
{
644646
// BS: Delete one character from "compl_leader".
645647
if ((c == K_BS || c == Ctrl_H)
@@ -697,6 +699,8 @@ edit(
697699
ins_compl_delete();
698700
}
699701
}
702+
else if (ins_completion && !pum_wanted() && ins_compl_preinsert_effect())
703+
ins_compl_delete();
700704

701705
// Prepare for or stop CTRL-X mode. This doesn't do completion, but
702706
// it does fix up the text when finishing completion.

0 commit comments

Comments
 (0)