Merge pull request #155 from snosov1/master

use position-bytes function to get the byte offset
This commit is contained in:
Brian Schott 2014-08-11 17:12:04 +00:00
commit 59dec3d4aa
1 changed files with 3 additions and 2 deletions

View File

@ -23,8 +23,9 @@
(require 'auto-complete)
(require 'rx)
(require 'yasnippet)
(require 'yasnippet nil t)
(require 'eshell)
(defcustom ac-dcd-executable
"dcd-client"
"Location of dcd-client executable."
@ -167,7 +168,7 @@ If you want to restart server, use `ac-dcd-init-server' instead."
(defsubst ac-dcd-cursor-position ()
"Get cursor position to pass to dcd-client.
TODO: multi byte character support"
(point))
(position-bytes (point)))
(defsubst ac-dcd-build-complete-args (pos)
(list