Disable environment-based completion in kurlcompletion on openbsd

(cherry picked from commit 78a66b11dd)
v3.5.13-sru
François Andriot 10 years ago committed by Slávek Banko
parent e703480d0d
commit 6cbb86f9ae

@ -778,10 +778,15 @@ bool KURLCompletion::userCompletion(const MyURL &url, TQString *match)
// Environment variables
//
#if !defined(__OpenBSD__)
extern char **environ; // Array of environment variables
#endif
bool KURLCompletion::envCompletion(const MyURL &url, TQString *match)
{
#if defined(__OpenBSD__)
return false;
#else
if ( url.file().at(0) != '$' )
return false;
@ -816,6 +821,7 @@ bool KURLCompletion::envCompletion(const MyURL &url, TQString *match)
*match = finished();
return true;
#endif
}
//////////////////////////////////////////////////

Loading…
Cancel
Save