[geany/geany] 989e0d: calltips: Allow for more than one space between the brace and the word
Colomban Wendling
git-noreply at xxxxx
Wed Feb 17 17:46:16 UTC 2016
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Wed, 17 Feb 2016 17:46:16 UTC
Commit: 989e0df412956396d6f6a50fc7797e296e77014d
https://github.com/geany/geany/commit/989e0df412956396d6f6a50fc7797e296e77014d
Log Message:
-----------
calltips: Allow for more than one space between the brace and the word
Modified Paths:
--------------
src/editor.c
Modified: src/editor.c
3 lines changed, 3 insertions(+), 0 deletions(-)
===================================================================
@@ -2023,6 +2023,9 @@ gboolean editor_show_calltip(GeanyEditor *editor, gint pos)
if (! highlighting_is_code_style(lexer, style))
return FALSE;
+ while (pos > 0 && isspace(sci_get_char_at(sci, pos - 1)))
+ pos--;
+
word[0] = '\0';
editor_find_current_word(editor, pos - 1, word, sizeof word, NULL);
if (word[0] == '\0')
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list