Apply suggestions from code review

Co-authored-by: Screwtapello <thristian@gmail.com>
Co-authored-by: Johannes Altmanninger <aclopte@gmail.com>
This commit is contained in:
Maxime Coste 2020-09-06 10:56:37 +10:00 committed by GitHub
parent 0cd706254a
commit f84c550d30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ define-command -hidden clang-show-error-info %{
define-command clang-enable-diagnostics -docstring %{ define-command clang-enable-diagnostics -docstring %{
Activate automatic error reporting and diagnostics Activate automatic error reporting and diagnostics
Information about the analysis are showned after the buffer has been parsed with the clang-parse function Information about the analysis will be shown after the buffer has been parsed with the clang-parse function
} %{ } %{
add-highlighter window/clang_flags flag-lines default clang_flags add-highlighter window/clang_flags flag-lines default clang_flags
hook window -group clang-diagnostics NormalIdle .* %{ clang-show-error-info } hook window -group clang-diagnostics NormalIdle .* %{ clang-show-error-info }

View File

@ -6,7 +6,7 @@ declare-option -hidden int grep_current_line 0
define-command -params .. -file-completion -docstring %{ define-command -params .. -file-completion -docstring %{
grep [<arguments>]: grep utility wrapper grep [<arguments>]: grep utility wrapper
All the optional arguments are forwarded to the grep utility All optional arguments are forwarded to the grep utility
} grep %{ evaluate-commands %sh{ } grep %{ evaluate-commands %sh{
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then
set -- "${kak_selection}" set -- "${kak_selection}"