Mercurial > vim
comparison src/ex_getln.c @ 20164:2dd1ac2c48f4 v8.2.0637
patch 8.2.0637: incsearch highlighting does not work for ":sort!"
Commit: https://github.com/vim/vim/commit/333015a46e916f566763ec44ae8669c0378767d9
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 25 15:54:16 2020 +0200
patch 8.2.0637: incsearch highlighting does not work for ":sort!"
Problem: Incsearch highlighting does not work for ":sort!".
Solution: Skip over the exclamation point. (closes https://github.com/vim/vim/issues/5983)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 25 Apr 2020 16:00:04 +0200 |
parents | 252d2bb90394 |
children | 8d9229c4781a |
comparison
equal
deleted
inserted
replaced
20163:d7e064056b24 | 20164:2dd1ac2c48f4 |
---|---|
247 else if (*cmd == 's' && cmd[1] == 'n') | 247 else if (*cmd == 's' && cmd[1] == 'n') |
248 p_magic = FALSE; | 248 p_magic = FALSE; |
249 } | 249 } |
250 else if (STRNCMP(cmd, "sort", MAX(p - cmd, 3)) == 0) | 250 else if (STRNCMP(cmd, "sort", MAX(p - cmd, 3)) == 0) |
251 { | 251 { |
252 // skip over flags | 252 // skip over ! and flags |
253 if (*p == '!') | |
254 p = skipwhite(p + 1); | |
253 while (ASCII_ISALPHA(*(p = skipwhite(p)))) | 255 while (ASCII_ISALPHA(*(p = skipwhite(p)))) |
254 ++p; | 256 ++p; |
255 if (*p == NUL) | 257 if (*p == NUL) |
256 goto theend; | 258 goto theend; |
257 } | 259 } |