Pārlūkot izejas kodu

Docs now mention line highlight depends on signs

Strahinja Val Markovic 11 gadi atpakaļ
vecāks
revīzija
365f67f82c
2 mainītis faili ar 6 papildinājumiem un 2 dzēšanām
  1. 5 1
      README.md
  2. 1 1
      python/ycm/vimsupport.py

+ 5 - 1
README.md

@@ -523,6 +523,9 @@ You can also style the line that has the warning/error with these groups:
 - `YcmWarningLine`, which falls back to group `SyntasticWarningLine` if it
   exists
 
+Note that the line highlighting groups only work when gutter signs are turned
+on.
+
 Here's how you'd change the style for a group:
 
 ```
@@ -832,7 +835,8 @@ Default: `>>`
 ### The `g:ycm_enable_diagnostic_signs` option
 
 When this option is set, YCM will put icons in Vim's gutter on lines that have a
-diagnostic set.
+diagnostic set. Turning this off will also turn off the `YcmErrorLine` and
+`YcmWarningLine` highlighting.
 
 This option is part of the Syntastic compatibility layer; if the option is not
 set, YCM will fall back to the value of the `g:syntastic_enable_signs` option

+ 1 - 1
python/ycm/vimsupport.py

@@ -281,7 +281,7 @@ def EchoText( text, log_as_message = True ):
     EchoLine( line )
 
 
-# Echos text but truncates the text so that it all fits on one line
+# Echos text but truncates it so that it all fits on one line
 def EchoTextVimWidth( text ):
   vim_width = GetIntValue( '&columns' )
   truncated_text = str( text )[ : int( vim_width * 0.9 ) ]