Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Consider dash (-) when looking for the word to complete for CSS

  • Loading branch information...
commit 565c9176881f8d8a6d308a047c762e9e7cfdbbd4 1 parent 2297bad
Colomban Wendling authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  src/editor.c
2  src/editor.c
@@ -2210,6 +2210,8 @@ gboolean editor_start_auto_complete(GeanyEditor *editor, gint pos, gboolean forc
2210 2210
 
2211 2211
 	if (ft->id == GEANY_FILETYPES_LATEX)
2212 2212
 		wordchars = GEANY_WORDCHARS"\\"; /* add \ to word chars if we are in a LaTeX file */
  2213
+	else if (ft->id == GEANY_FILETYPES_CSS)
  2214
+		wordchars = GEANY_WORDCHARS"-"; /* add - because they are part of property names */
2213 2215
 	else
2214 2216
 		wordchars = GEANY_WORDCHARS;
2215 2217
 

0 notes on commit 565c917

Please sign in to comment.
Something went wrong with that request. Please try again.