Commits

Anonymous committed 4988c3c

rope-show-doc: passing maxfixes to codeassist.get_doc()

Comments (0)

Files changed (1)

ropemacs/interface.py

     def show_doc(self):
         self._check_project()
         resource, offset = self._get_location()
-        docs = codeassist.get_doc(
-            self.project, self._get_text(), offset, resource)
+        maxfixes = lisp['ropemacs-codeassist-maxfixes'].value()
+        docs = codeassist.get_doc(self.project, self._get_text(), offset,
+                                  resource, maxfixes=maxfixes)
         buffer = lisputils.make_buffer('*rope-pydoc*', docs, empty_goto=False)
         lisp.local_set_key('q', lisp.bury_buffer)