#NEWLINE# def delete_current_note( ) : #NEWLINE# #INDENT# filename = '' #NEWLINE# if ( vim . current . buffer != buf_results ) : #NEWLINE# #INDENT# filename = nvimdb . get_filename ( buf_results [ 0 ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( row , _ ) = vim . current . window . cursor #NEWLINE# row -= 1 #NEWLINE# if ( row == 1 ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( not buf_results [ row ] ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# filename = nvimdb . get_filename ( buf_results [ row ] ) #NEWLINE# #UNINDENT# if ( not filename ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# delete_note ( filename )