aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad
diff options
context:
space:
mode:
authorAdam Vogt <vogt.adam@gmail.com>2009-10-12 06:31:33 +0200
committerAdam Vogt <vogt.adam@gmail.com>2009-10-12 06:31:33 +0200
commitbc47160271c0c3e8df73b918ca4b928aa6a54479 (patch)
treede59f4e24fa0feae720eee2e999b164d69f28ba8 /XMonad
parentca86116eac7574922437e3ea38f4192a69bc25e2 (diff)
downloadXMonadContrib-bc47160271c0c3e8df73b918ca4b928aa6a54479.tar.gz
XMonadContrib-bc47160271c0c3e8df73b918ca4b928aa6a54479.tar.xz
XMonadContrib-bc47160271c0c3e8df73b918ca4b928aa6a54479.zip
Correct erroneous haddock link in U.XSelection
Ignore-this: e5c905104741d14dbb411272c37e0e29 darcs-hash:20091012043133-1499c-798a8938259ee18cafdeb828706122e84a5bc0f5.gz
Diffstat (limited to 'XMonad')
-rw-r--r--XMonad/Util/XSelection.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/XMonad/Util/XSelection.hs b/XMonad/Util/XSelection.hs
index c08e092..e0f2ac8 100644
--- a/XMonad/Util/XSelection.hs
+++ b/XMonad/Util/XSelection.hs
@@ -133,7 +133,7 @@ safePromptSelection app = join $ io $ liftM (safeSpawn app . return) getSelectio
unsafePromptSelection app = join $ io $ liftM unsafeSpawn $ fmap (\x -> app ++ " " ++ x) getSelection
{- | A wrapper around 'promptSelection' and its safe variant. They take two parameters, the first is a function that transforms strings, and the second is the application to run. The transformer essentially transforms the selection in X.
-One example is to wrap code, such as a command line action copied out of the browser to be run as '"sudo" ++ cmd' or '"su - -c \"" ++ cmd ++ "\"".
+One example is to wrap code, such as a command line action copied out of the browser to be run as @"sudo" ++ cmd@ or @"su - -c \""++ cmd ++"\""@.
-}
transformPromptSelection, transformSafePromptSelection :: (String -> String) -> String -> X ()
transformPromptSelection f app = join $ io $ liftM (safeSpawn app . return) (fmap f getSelection)