File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ Both should have the form (FILENAME LINE COLUMN)."
135135(defun  lsp-ui-find-next-reference  (&optional  extra )
136136  " Find next reference of the symbol at point." 
137137  (interactive )
138-   (let*  ((cur (list  buffer-file-name (lsp--cur-line ) (lsp--cur-column )))
138+   (let*  ((cur (list  buffer-file-name (line-number-at-pos ) (-  ( point ) ( line-beginning-position ) )))
139139         (refs (lsp-ui--reference-triples extra))
140140         (idx -1 )
141141         (res (-first (lambda  (ref ) (cl-incf  idx) (lsp-ui--location<  cur ref)) refs)))
@@ -152,7 +152,7 @@ Both should have the form (FILENAME LINE COLUMN)."
152152(defun  lsp-ui-find-prev-reference  (&optional  extra )
153153  " Find previous reference of the symbol at point." 
154154  (interactive )
155-   (let*  ((cur (list  buffer-file-name (lsp--cur-line ) (lsp--cur-column )))
155+   (let*  ((cur (list  buffer-file-name (line-number-at-pos ) (-  ( point ) ( line-beginning-position ) )))
156156         (refs (lsp-ui--reference-triples extra))
157157         (idx -1 )
158158         (res (-last (lambda  (ref ) (and  (lsp-ui--location<  ref cur) (cl-incf  idx))) refs)))
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments