[rkward] rkward/windows: Make arghint model respect minimum word length for auto-trigger
Thomas Friedrichsmeier
null at kde.org
Fri Feb 22 08:41:57 GMT 2019
Git commit 80385f5ce7580ef6d2b91bcaac3b4342f7637e92 by Thomas Friedrichsmeier.
Committed on 22/02/2019 at 08:41.
Pushed by tfry into branch 'master'.
Make arghint model respect minimum word length for auto-trigger
M +1 -1 rkward/windows/rkcodecompletion.cpp
https://commits.kde.org/rkward/80385f5ce7580ef6d2b91bcaac3b4342f7637e92
diff --git a/rkward/windows/rkcodecompletion.cpp b/rkward/windows/rkcodecompletion.cpp
index ffe303a8..e10d880a 100644
--- a/rkward/windows/rkcodecompletion.cpp
+++ b/rkward/windows/rkcodecompletion.cpp
@@ -260,7 +260,7 @@ void RKCompletionManager::updateVisibility () {
}
// NOTE: Freaky bug in KF 5.44.0: Call hint will not show for the first time, if logically above the primary screen. TODO: provide patch for kateargumenthinttree.cpp:166pp
startModel (cc_iface, callhint_model, true, currentCallRange (), &active_models);
- startModel (cc_iface, arghint_model, true, argname_range, &active_models);
+ startModel (cc_iface, arghint_model, (currentCompletionWord ().length () >= RKSettingsModuleCommandEditor::completionMinChars ()) || user_triggered, argname_range, &active_models);
if (!active_models.isEmpty ()) {
active = true;
More information about the rkward-tracker
mailing list