Revision: 3404 http://geany.svn.sourceforge.net/geany/?rev=3404&view=rev Author: ntrel Date: 2008-12-19 16:10:54 +0000 (Fri, 19 Dec 2008)
Log Message: ----------- Prevent GLib warning for g_strstrip().
Modified Paths: -------------- trunk/src/editor.c
Modified: trunk/src/editor.c =================================================================== --- trunk/src/editor.c 2008-12-18 22:02:15 UTC (rev 3403) +++ trunk/src/editor.c 2008-12-19 16:10:54 UTC (rev 3404) @@ -1971,7 +1971,8 @@ word = editor_read_word_stem(editor, pos, wc);
/* prevent completion of "for " */ - if (! isspace(sci_get_char_at(sci, pos - 1))) /* pos points to the line end char so use pos -1 */ + if (NZV(word) && + ! isspace(sci_get_char_at(sci, pos - 1))) /* pos points to the line end char so use pos -1 */ { sci_start_undo_action(sci); /* needed because we insert a space separately from construct */ result = snippets_complete_constructs(editor, pos, word);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.